Animated gif freezes

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.
 
S

Scott M.

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)?
 
G

Guest

Yes,

If the scanner isn't running, the gifs work fine. I've also tried a variety
of gifs.
 
M

Matt Lacey

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?
 
G

Guest

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.)
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Animated GIF 3
Animated Gif 1
Animated Gif not working on new machine 2
STUPID%20FILE%20NAMES 23
Showing animation on a form 2
PowerPoint White Border from Powerpoint 2007 0
.png to .gif with convert tool. 13
Animated gifs at font fill 7

Top