Re: BackgroundWorker / Thread question
- From: "Carl Daniel [VC++ MVP]" <cpdaniel_remove_this_and_nospam@xxxxxxxxxxxxxxx>
- Date: Sun, 16 Sep 2007 22:10:00 -0700
Doug Semler wrote:
"Carl Daniel [VC++ MVP]"
Because background worker threads are automatically ended by the
runtime when the main thread exits. Look up the documentation on the
System.Threading.Thread.IsBackground property for more information
on this topic.
I thought it was that background threads are ended when all foreground
threads exit, not just the main thread? (All foreground threads
exiting indicates to the CLR to shutdown, right?)
Yes, you're right about that - it's not just the main thread, but all
non-background thread that have to exit. (In the OPs case, I was assuming
that the main thread was the only non-background thread, but that's clearly
not true in the general case).
-cd
.
- References:
- BackgroundWorker / Thread question
- From: Piotrekk
- Re: BackgroundWorker / Thread question
- From: Carl Daniel [VC++ MVP]
- Re: BackgroundWorker / Thread question
- From: Doug Semler
- BackgroundWorker / Thread question
- Prev by Date: Move menu items causing user to go bananas
- Next by Date: Re: Scale a vector
- Previous by thread: Re: BackgroundWorker / Thread question
- Next by thread: Re: BackgroundWorker / Thread question
- Index(es):