Infinte Background Thread

  • Thread starter Thread starter Christopher Pragash
  • Start date Start date
C

Christopher Pragash

Hello All,

I need to create an infinite (does not stop until the application exits)
background thread. How would I do this in CF.NET? Any suggestions or samples
would be really helpful.

Thanks in advance,
Chris
 
All it has to do is wait on an event enclosed in a loop that checks a flag
which you set when your app exits (as well as signal the event). The flag is
needed because you cannot create background threads in CF 1.0 [if you don't
shut them down the will keep your process up]

Something similar to the code I have here:
http://www.danielmoth.com/Blog/2004/11/dont-poll.html

Cheers
Daniel
 
Back
Top