"Miha Markic" <miha at rthand com> wrote in message
news:OG**************@TK2MSFTNGP09.phx.gbl...
Hi Nicholas,
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote
in message news:eW**************@TK2MSFTNGP09.phx.gbl... cs,
You are right, VS might very well not pick it up, if it is not
monitoring the current thread of execution. Welcome to the wonderful
world of multi-threaded programming. =)
What do you mean by monitoring?
I suppose if the app being debugged spawns a managed thread and thread
throws an error it should be picked by IDE.
In which case vs.net won't pick up exceptions?
--
Miha Markic - DXSquad/RightHand .NET consulting & software development
miha at rthand com
I am unable to duplicate my error on a small example I can post but this
was what I had.
A thread that was talking to a serial port, the API I used to talk to the
serial port is probably threaded as well although I am not certain of it.
Whenver the serial API would receive something from the serial port it would
call an event, which my thread had registered a delegate for that event, on
my event handdler method I would generate another event to whatever program
had created my thread. If that event didnt have any delegates registered yet
then when calling my event it should have thrown a null pointer exception,
but instead the program would act normal like if nothing has happened
however my thread was dead and obviously no more input from the serial
connection worked.