Duration of a timer

G

Greg Smith

I have an application that uses a timer to query for new orders and flash
the minimized application when a new order arrives.

The timer seems to work ok but one user leaves his application up over night
and sometimes it fails to detect a new order.

Is there a duration in the life of a timer? A timer time out? If so how
would I set it to infinite?

Any help is greatly appreciated.
 
M

Mr. Arnold

Greg Smith said:
I have an application that uses a timer to query for new orders and flash
the minimized application when a new order arrives.

The timer seems to work ok but one user leaves his application up over
night and sometimes it fails to detect a new order.

Is there a duration in the life of a timer? A timer time out? If so how
would I set it to infinite?

Any help is greatly appreciated.

Garbage Collection can destroy a Timer object if it's not protected.

System.GC.KeepAlive(object);
 

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

Top