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

Unable to debug the unhandled exxception application event code

P: n/a
I have some things I need done in the application events unhandledexception
event. I have some code in there whose execution I need to verify. In order
to do that I wrote a simple button click event in my app that would fire off
an unhandled exception as follows.

Dim x As Specialized.NameValueCollection

MessageBox.Show(x.Count.ToString) 'I should have dimmed it as new to
prevent the exception

I set a break point on the first line of code in my unhandled exception
event but when testing the app in Vs2005 it stops on the messagebox.show
line and shows the null reference was unhandled dialog, never allowing me to
get to my code in the application events.

How can I debug the code in the unhandledexception event?

Thanks for any help.

Robert Dufour


Nov 13 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.