Guest Stoned_Krusty Posted January 14, 2004 Report Posted January 14, 2004 Under the .NET framework, there is the Threading namespace, this contains a number of classes, including the Thraed class. Now, under the windows implementation, this class supports the method - Abort(). This method does not seem to exist in the windows CE implementation, is this true? If so, how do you terminate a thread at will? Any help here would be appreciated, im porting an IRC library to my SPVE200 and writting a nice IRC client :) Thanks, Krusty [Edit] Would setting the thread to null call Thread.Dispose()? and would that in tern terminate the thread in an orderly fashion?
Guest bdmoore Posted January 14, 2004 Report Posted January 14, 2004 Stoned_Krusty, The Compact Framework doesn't support stopping or aborting threads unfortunately. Setting the thread to null would not be advisable. One possible solution would be to have a class level variable (just a bool would do) that you could set when you want to stop the thread, and have the thread periodically check it and shut itself down if required. HTH :) bdmoore
Guest Stoned_Krusty Posted January 14, 2004 Report Posted January 14, 2004 Cheers, I managed to get it all working anyway, will post some screenshots soon if anyone is interested, and the IRC lib (excluding the DCC Classes) has been ported and is working so far! Watch this space for SPVIRC! :) Thanks again!
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now