|
-
Nov 24th, 2003, 01:12 PM
#1
Thread Starter
Frenzied Member
Simple threading question
In a service, the OnStart() method creates a couple threads. When the service is stopped, it looks like those threads continue to execute for a while.
Do these created threads continue to exist even after the thread that created them exits? What's the best way to clean up?
TIA,
Mike
-
Nov 24th, 2003, 03:11 PM
#2
Addicted Member
not sure if will solve your problem , but set all threads isbackground property to true, this will make them terminate when all foreground threads terminate
-
Nov 24th, 2003, 04:40 PM
#3
Thread Starter
Frenzied Member
Seems to do the trick, thanks.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|