Re: how to abort a thread in wince for pocket pc
- From: "Daniel Moth" <dmoth74@xxxxxxxxxxx>
- Date: Tue, 5 Jul 2005 10:47:54 +0100
Even if there was an Abort method, the recommended approach is to periodically check from your worker thread a flag that indicates whether it should exit - you set the flag from your UI thread when you are about to exit your app. In other words, threads should not be killed rather they should be asked to commit suicide.
An example is here: http://www.danielmoth.com/Blog/2004/11/dont-poll.html
Note that with CF 2.0 there are more options (such as setting the IsBackground=true property and not worrying about your thread keeping the process alive).
Cheers Daniel -- http://www.danielmoth.com/Blog/
"Pradeep Kumar S" <PradeepKumarS@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:D6C33578-D3E8-40EE-A248-EF4D8D8D3687@xxxxxxxxxxxxxxxx
Dear all,
I am working on Wince for pocket pc using VS .Net 2003 with C#. I am running
one
thread in background. How to abort this thread so that my application will be
inactive.
Regards,
Pradeep Kumar
.
- References:
- how to abort a thread in wince for pocket pc
- From: Pradeep Kumar S
- how to abort a thread in wince for pocket pc
- Prev by Date: how to abort a thread in wince for pocket pc
- Next by Date: CDMA signal
- Previous by thread: how to abort a thread in wince for pocket pc
- Next by thread: Re: how to abort a thread in wince for pocket pc
- Index(es):
Relevant Pages
|