I have a timer control which writes to a file every 5 seconds but the application closes down before it gets to the second firing of the timer. How can i get the application to stay alive until the next timer interval comes around?
Basic processing is to initialises the application, then wait for events. One of these will be your timer pop, others will be GUI interactions, some of which should cause the app to exit.
It sounds like you are exiting without waiting for an event that tells you to do so.
Thats sounds exactly like my problem. In my main method, i create an object that does all the work, as soon as that has completed, the main method completes and the application exits. I just want the application to sit around and wait for teh timer control to do stuff
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.