Results 1 to 3 of 3

Thread: Simple threading question

  1. #1

    Thread Starter
    Frenzied Member Mike Hildner's Avatar
    Join Date
    Jul 2002
    Location
    Des Moines, NM
    Posts
    1,690

    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

  2. #2
    Addicted Member
    Join Date
    Sep 2003
    Posts
    227
    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

  3. #3

    Thread Starter
    Frenzied Member Mike Hildner's Avatar
    Join Date
    Jul 2002
    Location
    Des Moines, NM
    Posts
    1,690
    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
  •  



Click Here to Expand Forum to Full Width