Click here to Skip to main content
15,902,870 members
Home / Discussions / C#
   

C#

 
GeneralRe: Type.GetType("System.Drawing.Color") returns null?! Pin
Arun Bhalla21-Oct-03 9:22
Arun Bhalla21-Oct-03 9:22 
GeneralRe: Type.GetType("System.Drawing.Color") returns null?! Pin
leppie21-Oct-03 11:53
leppie21-Oct-03 11:53 
GeneralRe: Type.GetType("System.Drawing.Color") returns null?! Pin
Arun Bhalla21-Oct-03 12:16
Arun Bhalla21-Oct-03 12:16 
Generalmanaged + unamanaged directx Pin
gonenb21-Oct-03 8:20
gonenb21-Oct-03 8:20 
GeneralRe: managed + unamanaged directx Pin
Jeremy Kimball24-Oct-03 5:32
Jeremy Kimball24-Oct-03 5:32 
GeneralRe: managed + unamanaged directx Pin
gonenb24-Oct-03 6:46
gonenb24-Oct-03 6:46 
GeneralRe: managed + unamanaged directx Pin
gonenb30-Oct-03 4:29
gonenb30-Oct-03 4:29 
GeneralThreads appear twice Pin
AJB...21-Oct-03 6:39
AJB...21-Oct-03 6:39 
I've been noticing a strange problem related to threading and debugging them in VS .Net 2003 recently and am not sure if this is a) a bug in VS b) something odd I just don't understand and/or c) the cause of a related problem I seem to be having.

The issue is this, I'm using ThreadPool.QueueUserWorkItem to create various asynchrous actions. The generally works fine. On occassion (its difficult to exactly replicate) my process suddenly starts using 100% of my machine's processor without stopping. When I pause the execution in VS and look at the threads there are two listings for some threads (e.g. thread with ID 2480 is listed twice) but they are in the same execution position and seemingly one in the same. This is quite odd to me. I've noticed it happening for some time both using ThreadPool and when I create my own threads. There is no rhyme or reason why nor logic why some are double entered and some are not from a code standpoint. I tried to debug the creation some time back but could not get it to stop from listing twice.

So my question is as above, is this a VS bug, some strange thing happening in my code, or some other artifact? I can't confirm but I'm suspicious this is why I'm getting runaway threads who, when I try and debug them, the debugging info is all corrupt and I can barely even step through them. Any and all suggestions are welcome. I'm a bit of a newbie with VS.

Thanks in advance,
Andy
GeneralRe: Threads appear twice Pin
James Simpson24-Oct-03 2:03
James Simpson24-Oct-03 2:03 
QuestionEditcontrol GUI widget.. Any Tips? Pin
kfowlks21-Oct-03 4:32
kfowlks21-Oct-03 4:32 
AnswerRe: Editcontrol GUI widget.. Any Tips? Pin
J. Dunlap21-Oct-03 12:14
J. Dunlap21-Oct-03 12:14 
GeneralRe: Editcontrol GUI widget.. Any Tips? Pin
kfowlks22-Oct-03 4:16
kfowlks22-Oct-03 4:16 
General__LINE__ Pin
Rick Crone21-Oct-03 3:53
Rick Crone21-Oct-03 3:53 
GeneralRe: __LINE__ Pin
Rick Crone21-Oct-03 5:51
Rick Crone21-Oct-03 5:51 
GeneralRe: __LINE__ Pin
Heath Stewart21-Oct-03 6:39
protectorHeath Stewart21-Oct-03 6:39 
GeneralRe: __LINE__ Pin
Rick Crone21-Oct-03 7:53
Rick Crone21-Oct-03 7:53 
GeneralRe: __LINE__ Pin
Heath Stewart21-Oct-03 8:36
protectorHeath Stewart21-Oct-03 8:36 
GeneralRe: __LINE__ Pin
Rick Crone21-Oct-03 9:43
Rick Crone21-Oct-03 9:43 
GeneralRe: __LINE__ Pin
leppie21-Oct-03 8:42
leppie21-Oct-03 8:42 
GeneralRe: __LINE__ Pin
J. Dunlap21-Oct-03 9:01
J. Dunlap21-Oct-03 9:01 
QuestionHow can I get graphics through message WM_NCPAINT ? Pin
wangier20-Oct-03 23:24
wangier20-Oct-03 23:24 
AnswerRe: How can I get graphics through message WM_NCPAINT ? Pin
Heath Stewart21-Oct-03 6:41
protectorHeath Stewart21-Oct-03 6:41 
GeneralRe: How can I get graphics through message WM_NCPAINT ? Pin
wangier21-Oct-03 15:08
wangier21-Oct-03 15:08 
GeneralRe: How can I get graphics through message WM_NCPAINT ? Pin
Heath Stewart21-Oct-03 18:57
protectorHeath Stewart21-Oct-03 18:57 
GeneralRe: How can I get graphics through message WM_NCPAINT ? Pin
wangier21-Oct-03 23:40
wangier21-Oct-03 23:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.