I have a real-time program that needs to be operating continuously. When the program is iconned, it seems that it sometimes stops updating and other times will abort when it is restored to the active state. Is there a method of controlling what happens when my program is iconned? I am using Visual Studio 2005.
+2
A:
I'm stealing lothar's comment and presenting it as an answer: You may want to implement your real time program as a windows service. If you need to start and stop it under user control, you can provide a GUI (that does not need to run all the time) to start, pause, continue, and stop the service. As a service, your program is much less likely to be interrupted by the user doing thing on the computer, including things like logging out.
Thomas Jones-Low
2009-05-04 17:25:43
+1 for stealing and doing the work to make it into a real answer ;-)
lothar
2009-05-04 17:30:14