Duration of a timer

  • Thread starter Thread starter Greg Smith
  • Start date Start date
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.
 
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);
 
Back
Top