|
-
Feb 8th, 2006, 06:10 PM
#1
Thread Starter
Frenzied Member
help, using two threads and 'child' thread being stopped(for unknown reason) in debug
When I run my multi threaded(2 threads), it works fine, but when I go in debug mode to step thru the code, i get message "Thread was being stopped." It stops in this part of the code:
obj = new Class1(...);
after I try to step thru this line, it gives me the message. Any ideas?
-
Feb 8th, 2006, 07:32 PM
#2
Thread Starter
Frenzied Member
Re: help, using two threads and 'child' thread being stopped(for unknown reason) in debug
Ok, for some reason, I make changes to the class constructor, then the thread is no longer stopping, THEN i put it back the old way(which caused it to stop in the first place), and it no longer stops either. But the debug is still acting kinda weird, when i press F10 on certain line of code, i don't go to the next line, but I end up going to the next break point. Anyone come across this problem before? Is this some bug in .net? I know that there is no data conflict because when the child thread starts moving, the parent is no longer going to any lines of codes because the final line the parentThread calls is the thread.start(). Again, let me say that my program works when I just execute it, but in debug mode, it acts weird.
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
|