Console Application

S

Sam

Hi,
I created a Timer Class for console application using threads. It woks fine
but when I turn my phone off (freeze, not without supply) after about 2
minutes the process doesn't exist anymore. Why??
P.s.
I know process doesn't work when phone is turned off, but wm should resume
it when I turn my phone on again.
Thanks.
Sam.
 
S

Sam

I solved the problem. I had to declare my Timer class reference (inside
main) as static.
 

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