Thread Debugging

Hi,

I am currently developing a multithreaded network app, debug output shows a couple of first chance exceptions, however if an exception occurs that is not first chance i.e. bad mid() statement, the ide just freezes for a few seconds, no pop up and i cant trace through the app. What am i doing wrong? I have disabled Just My Code, although i doubt this would affect the debugging of my code as it is all managed anyway.

I would also like to debug the first chance exceptions if at all possible. Is there something in the IDE settings i have missed?

Thanks for your time.

Matt.

[587 byte] By [MattEvans] at [2007-12-16]
# 1

Try setting a break point in your thread's entry point before running the application (the entry point meaning the function that is the target of your thread-start delegate). You should be able to step through the code and see where your error is. My guess is that the reason you cannot debug is that the error is sever enough to cause a thread abort. At that point, there is no thread to debug. Try running this again and capture the results in the output window. Post these results here and they may help me track down the error for you.

TobinTitus at 2007-9-8 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 2

I have worked out what the problem was:

I had most of the thrown tick boxes in the exceptions property pages unticked. I ticked all of them, and now the debugger breaks at exceptions perfectly!!!

Not sure if this was turned off by default or if i had inadvertantly done this at some point previously!

Thanks.

MattEvans at 2007-9-8 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 3
Good deal. Glad you are up and running.
TobinTitus at 2007-9-8 > top of Msdn Tech,Visual Basic,Visual Basic General...