Animated gif freezes

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a windows application that controls a scanner. I want to display an
animated gif while the scanner is scanning so the user can see something is
happening.

The problem is that the gif freezes while the scanner is running, thus
defeating the whole purpose of displaying the gif.

Is there a way to display the gif so that it doesn't freeze?

I have tried putting it in a picture box or in a label and using the
ImageAnimator.

I have also tried running the scanner in a different thread.

Nothing seems to work.

If I displayed it on a new form would that do the trick?

Thanks for any help.
 
Are you sure that the .gif wasn't built to run through its animation loop a
finite amount of times and then stop (as some are)?
 
I have a windows application that controls a scanner. I want to display an
animated gif while the scanner is scanning so the user can see something is
happening.

The problem is that the gif freezes while the scanner is running, thus
defeating the whole purpose of displaying the gif.

Is there a way to display the gif so that it doesn't freeze?

I have tried putting it in a picture box or in a label and using the
ImageAnimator.

I have also tried running the scanner in a different thread.

Nothing seems to work.

If I displayed it on a new form would that do the trick?

Thanks for any help.

If the scanner isn't locking the whole machine, I'd reinvestiagte
multi-threading as a solution.
What type of scanner is it?
How did you run it in a different thread?
 
How do I tell if the scanner is locking the whole machine?
The Scanner is an Epson Perfection 4490 Photo.

Here's how I'm running the new thread:

// start the thread
Thread thd = new Thread(new ThreadStart(THREAD1));
thd.Start();

public void THREAD1() {
StartFax();
}

private void StartFax() {
// code to control the fax
//(I'm using an ActiveX control from Dynamsoft called Dynamic Twain to
control the scanner.)
}
 
Back
Top