By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,168 Members | 1,194 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,168 IT Pros & Developers. It's quick & easy.

ThreadState of a background Thread

P: n/a
I have created some background threads so that when the application aborts
all the threads should be automatically aborted. But the problem is that when
I make a thread background thread I am unable to correctly find its thread
state as the thread state property always return 12.
If I make the thread foreground the thread state property works just fine.
Please help me in finding the solution.
Nov 22 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hmm... 12 means "unstarted background thread", did you call Start on the
thread object?

Willy.

"Ahsan" <Ah***@discussions.microsoft.com> wrote in message
news:E0**********************************@microsof t.com...
I have created some background threads so that when the application aborts
all the threads should be automatically aborted. But the problem is that
when
I make a thread background thread I am unable to correctly find its thread
state as the thread state property always return 12.
If I make the thread foreground the thread state property works just fine.
Please help me in finding the solution.

Nov 22 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.