473,395 Members | 2,436 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

How do i debug an unhandled exception

Bob
If I induce and unhandled exception in my vb.net code for instance using
'-- just a simple "object not initialized" exception (should read "as new")

Dim x As Specialized.NameValueCollection

MessageBox.Show(x.Count.ToString)

When I run this code in the ide I get the IDE showing me the unhandled
exception little dialog that comes up and suggest how I should corrcet my
code. BUT I have the ApplicationEvents.VB class in which I have the event
unhandled exception and in which I wrote code to to log the unhandled
exception info to the application log. When I test the compiled exe I see no
log written for the unhandled exception and in the IDE i cn never get to
step through my code to get to the unhandled exception event in the
ApplicationEvents class code.

What do I need to do to step through my code in the applicationEvents class
UnhandledExcepetionevent?

Thanks for any help,

Bob


Jun 4 '06 #1
0 1372

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Jake | last post by:
I'm trying to create an all encompassing error handler to handle all Unhandled Exceptions. I have added an event handler to AppDomain.CurrentDomain.UnhandledException and everything works fine when...
8
by: Steve Teeples | last post by:
I keep getting the error below. ---------------- An unhandled exception of type 'System.NullReferenceException' occurred in Unknown Module. Additional information: Object reference not set to...
8
by: Lars-Erik Aabech | last post by:
Hi! I've got an asp.net page that works for all users except one and that one user only gets the error with a certain parameter set to a certain value. (Same value as the others, but for this...
0
by: Gene Hubert | last post by:
I occasionally get the "Unhandled Exception" window popping up when I'm running with Debug on. I can't tell why I get the "Unhandled Exception" window instead of it catching the error and giving...
10
by: Brett | last post by:
For some reason when I step into the code below, it jumps out on the second iteration at the line I have marked below. Nothing else happens - no errors. Dim tcpClient As New...
2
by: kevinding | last post by:
Hi All, We meet an evil condition for our project. Our project has 3 layers. A C# layer to do some business logic, and Managed C++ layer translate managed values to native ones or vice...
0
by: Robert Dufour | last post by:
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...
5
by: blackjack2150 | last post by:
Hi. This one is really strange and annoying. The main method of a Windows Application: static void Main(string args) { Application.EnableVisualStyles();...
8
by: Jothishankar | last post by:
Hi, I am new to c#. I am trying to build an application that does backup of files to an external hard disk. My application behaves strangely. When i run the application under debug mode (F5),...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.