473,546 Members | 2,308 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Unhandled Exception

My program is crashing, but it doesn't crash on a single line of code. Below is what the output tab displays. I have no idea where to start inorder to debug this problem. Is there any suggesstions on how to start debuging the problem

'DefaultDomain' : Loaded 'c:\windows\mic rosoft.net\fram ework\v1.1.4322 \mscorlib.dll', No symbols loaded
'StoredProcedur e': Loaded 'N:\Dev\Program s\MNTEST3.net\T emplate.NET\bin \StoredProcedur e.exe', No symbols loaded
'StoredProcedur e.exe': Loaded 'c:\windows\ass embly\gac\syste m.windows.forms \1.0.5000.0__b7 7a5c561934e089\ system.windows. forms.dll', No symbols loaded
'StoredProcedur e.exe': Loaded 'c:\windows\ass embly\gac\syste m\1.0.5000.0__b 77a5c561934e089 \system.dll', No symbols loaded
'StoredProcedur e.exe': Loaded 'c:\windows\ass embly\gac\micro soft.visualbasi c\7.0.5000.0__b 03f5f7f11d50a3a \microsoft.visu albasic.dll', No symbols loaded
'StoredProcedur e.exe': Loaded 'c:\windows\ass embly\gac\syste m.drawing\1.0.5 000.0__b03f5f7f 11d50a3a\system .drawing.dll', No symbols loaded
'StoredProcedur e.exe': Loaded 'c:\windows\ass embly\gac\adodb \7.0.3300.0__b0 3f5f7f11d50a3a\ adodb.dll', No symbols loaded
'StoredProcedur e.exe': Loaded 'n:\dev\program s\mntest3.net\t emplate.net\bin \standardinclud e.dll', No symbols loaded
An unhandled exception of type 'System.NullRef erenceException ' occurred in StoredProcedure .ex

Additional information: Object reference not set to an instance of an object

Unhandled Exception: System.NullRefe renceException: Object reference not set to an instance of an object
at StandardInclude .StoredProcedur e.TemplateMain_ Load(Object eventSender, EventArgs eventArgs
at System.Windows. Forms.Form.OnLo ad(EventArgs e
at System.Windows. Forms.Form.OnCr eateControl(
at System.Windows. Forms.Control.C reateControl(Bo olean fIgnoreVisible
at System.Windows. Forms.Control.C reateControl(
at System.Windows. Forms.Control.W mShowWindow(Mes sage& m
at System.Windows. Forms.Control.W ndProc(Message& m
at System.Windows. Forms.Scrollabl eControl.WndPro c(Message& m
at System.Windows. Forms.Container Control.WndProc (Message& m
at System.Windows. Forms.Form.WmSh owWindow(Messag e& m
at System.Windows. Forms.Form.WndP roc(Message& m
at System.Windows. Forms.ControlNa tiveWindow.OnMe ssage(Message& m
at System.Windows. Forms.ControlNa tiveWindow.WndP roc(Message& m
at System.Windows. Forms.NativeWin dow.DebuggableC allback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparamThe program '[5976] StoredProcedure .exe' has exited with code 0 (0x0)

at System.Windows. Forms.SafeNativ eMethods.ShowWi ndow(HandleRef hWnd, Int32 nCmdShow
at System.Windows. Forms.Control.S etVisibleCore(B oolean value
at System.Windows. Forms.Form.SetV isibleCore(Bool ean value
at System.Windows. Forms.Control.s et_Visible(Bool ean value
at System.Windows. Forms.ThreadCon text.RunMessage LoopInner(Int32 reason, ApplicationCont ext context
at System.Windows. Forms.ThreadCon text.RunMessage Loop(Int32 reason, ApplicationCont ext context
at System.Windows. Forms.Applicati on.Run(Form mainForm
at StandardInclude .StoredProcedur e.Main()
Nov 20 '05 #1
1 2086
Why do you think no code has been executed?

The stack trace shows that the exception happens in the Load event of
TemplateMain.

"mike" <an*******@disc ussions.microso ft.com> wrote in message
news:07******** *************** ***********@mic rosoft.com...
My program is crashing, but it doesn't crash on a single line of code. Below is what the output tab displays. I have no idea where to start
inorder to debug this problem. Is there any suggesstions on how to start
debuging the problem?
'DefaultDomain' : Loaded 'c:\windows\mic rosoft.net\fram ework\v1.1.4322 \mscorlib.dll', No symbols
loaded. 'StoredProcedur e': Loaded 'N:\Dev\Program s\MNTEST3.net\T emplate.NET\bin \StoredProcedur e.exe', No
symbols loaded. 'StoredProcedur e.exe': Loaded 'c:\windows\ass embly\gac\syste m.windows.forms \1.0.5000.0__b7 7a5c561934e089\ s
ystem.windows.f orms.dll', No symbols loaded. 'StoredProcedur e.exe': Loaded 'c:\windows\ass embly\gac\syste m\1.0.5000.0__b 77a5c561934e089 \system.dll', No
symbols loaded. 'StoredProcedur e.exe': Loaded 'c:\windows\ass embly\gac\micro soft.visualbasi c\7.0.5000.0__b 03f5f7f11d50a3a \
microsoft.visua lbasic.dll', No symbols loaded. 'StoredProcedur e.exe': Loaded 'c:\windows\ass embly\gac\syste m.drawing\1.0.5 000.0__b03f5f7f 11d50a3a\system .
drawing.dll', No symbols loaded. 'StoredProcedur e.exe': Loaded 'c:\windows\ass embly\gac\adodb \7.0.3300.0__b0 3f5f7f11d50a3a\ adodb.dll', No
symbols loaded. 'StoredProcedur e.exe': Loaded 'n:\dev\program s\mntest3.net\t emplate.net\bin \standardinclud e.dll', No
symbols loaded. An unhandled exception of type 'System.NullRef erenceException ' occurred in StoredProcedure .exe
Additional information: Object reference not set to an instance of an object.

Unhandled Exception: System.NullRefe renceException: Object reference not set to an instance of an object. at StandardInclude .StoredProcedur e.TemplateMain_ Load(Object eventSender, EventArgs eventArgs) at System.Windows. Forms.Form.OnLo ad(EventArgs e)
at System.Windows. Forms.Form.OnCr eateControl()
at System.Windows. Forms.Control.C reateControl(Bo olean fIgnoreVisible)
at System.Windows. Forms.Control.C reateControl()
at System.Windows. Forms.Control.W mShowWindow(Mes sage& m)
at System.Windows. Forms.Control.W ndProc(Message& m)
at System.Windows. Forms.Scrollabl eControl.WndPro c(Message& m)
at System.Windows. Forms.Container Control.WndProc (Message& m)
at System.Windows. Forms.Form.WmSh owWindow(Messag e& m)
at System.Windows. Forms.Form.WndP roc(Message& m)
at System.Windows. Forms.ControlNa tiveWindow.OnMe ssage(Message& m)
at System.Windows. Forms.ControlNa tiveWindow.WndP roc(Message& m)
at System.Windows. Forms.NativeWin dow.DebuggableC allback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparamThe program '[5976]
StoredProcedure .exe' has exited with code 0 (0x0). )
at System.Windows. Forms.SafeNativ eMethods.ShowWi ndow(HandleRef hWnd, Int32 nCmdShow) at System.Windows. Forms.Control.S etVisibleCore(B oolean value)
at System.Windows. Forms.Form.SetV isibleCore(Bool ean value)
at System.Windows. Forms.Control.s et_Visible(Bool ean value)
at System.Windows. Forms.ThreadCon text.RunMessage LoopInner(Int32 reason, ApplicationCont ext context) at System.Windows. Forms.ThreadCon text.RunMessage Loop(Int32 reason, ApplicationCont ext context) at System.Windows. Forms.Applicati on.Run(Form mainForm)
at StandardInclude .StoredProcedur e.Main()

Nov 20 '05 #2

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

Similar topics

7
2664
by: Chuck Hartman | last post by:
I have a Windows service that requests web pages from a site using an HttpWebRequest object. When I try to request a page from an ASP.NET 2 site, I get a WebException with message "The remote server returned an error: (500) Internal Server Error." I found a post that suggested to catch the WebException to retrieve the actual HttpWebResponse...
5
2060
by: Dave Stewart | last post by:
I recently wrote my first Vb.net application, or at least my first complex app since moving up from vb6. When run from the VS.NET IDE, the program shows no errors and runs fine. When the output exe is run(this is a windows application) on my development pc, the exe runs fine as well. When the application is deployed on any other machine with .net...
5
5726
by: Lucvdv | last post by:
Can someone explain why this code pops up a messagebox saying the ThreadAbortException wasn't handled? The first exception is reported only in the debug pane, as expected. The second (caused by thread.Abort()) is reported twice: once in the debug window, and once through the message box. Is it because the thread was sleeping when the...
5
3287
by: Samuel R. Neff | last post by:
When you have an unhandled exception in vb.net how do you view the exception information in the debugger? In C# the debugger creates a local variable that points to the exception and you can view it in one of the windows (autos or locals, don't remember which). That doesn't appear to be the case with vb.net. I also tried using the...
0
1973
by: Colmeister | last post by:
I recently read Jason Clark's excellent article on Unhandled Exceptions (http://msdn.microsoft.com/msdnmag/issues/04/06/NET/default.aspx) and have attempted to incorporate the features he talks about in a new application I'm writing. However, when I try to use ThreadStart to do some work in a separate thread from my GUI, the methods Jason...
5
3377
by: Simon Tamman {Uchiha Jax} | last post by:
Now this is bugging me. I just released software for a client and they have reported an unhandled stack overflow exception. My first concern is that the entirity of the UI and any threaded operations are all within Try Catches to help me locate the problem and the origination of any problem by specifiying an error code in the "Catch"...
0
1386
by: Bob | last post by:
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...
1
6306
by: Bob | last post by:
In Vs 2005 you have new applicationsEvents.vb I was testing it in a simple app and found that it was easier to implement unhandled exception management tah it was in Vs2003 (vb.net) You can, if you want to, prevent your app from terminating on an unhandled exception, and for me this is important. In an Ivr app it will let me hang up the phone...
4
15904
by: bg_ie | last post by:
Hi, I have the following Program.cs - namespace TestFrameworkApplication { static class Program { /// <summary> /// The main entry point for the application.
5
5138
by: =?Utf-8?B?c3VydHVyeg==?= | last post by:
Hi, I feel like a noob for asking this. When I publish a VB windows application, I want to disable the ability of the the user to continue when there is an unhandled exception. For example, if there is a bug in the program that causes an exception, I want the program to crash. If there is an unhandled exception the program is in an...
0
7504
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7694
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7947
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7461
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6026
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5360
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5080
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
1921
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1046
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.