Unhandled Exception

From: mike (anonymous_at_discussions.microsoft.com)
Date: 02/09/04


Date: Mon, 9 Feb 2004 09:21:09 -0800

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\microsoft.net\framework\v1.1.4322\mscorlib.dll', No symbols loaded.
'StoredProcedure': Loaded 'N:\Dev\Programs\MNTEST3.net\Template.NET\bin\StoredProcedure.exe', No symbols loaded.
'StoredProcedure.exe': Loaded 'c:\windows\assembly\gac\system.windows.forms\1.0.5000.0__b77a5c561934e089\system.windows.forms.dll', No symbols loaded.
'StoredProcedure.exe': Loaded 'c:\windows\assembly\gac\system\1.0.5000.0__b77a5c561934e089\system.dll', No symbols loaded.
'StoredProcedure.exe': Loaded 'c:\windows\assembly\gac\microsoft.visualbasic\7.0.5000.0__b03f5f7f11d50a3a\microsoft.visualbasic.dll', No symbols loaded.
'StoredProcedure.exe': Loaded 'c:\windows\assembly\gac\system.drawing\1.0.5000.0__b03f5f7f11d50a3a\system.drawing.dll', No symbols loaded.
'StoredProcedure.exe': Loaded 'c:\windows\assembly\gac\adodb\7.0.3300.0__b03f5f7f11d50a3a\adodb.dll', No symbols loaded.
'StoredProcedure.exe': Loaded 'n:\dev\programs\mntest3.net\template.net\bin\standardinclude.dll', No symbols loaded.
An unhandled exception of type 'System.NullReferenceException' occurred in StoredProcedure.exe

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

Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.
   at StandardInclude.StoredProcedure.TemplateMain_Load(Object eventSender, EventArgs eventArgs)
   at System.Windows.Forms.Form.OnLoad(EventArgs e)
   at System.Windows.Forms.Form.OnCreateControl()
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl()
   at System.Windows.Forms.Control.WmShowWindow(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ContainerControl.WndProc(Message& m)
   at System.Windows.Forms.Form.WmShowWindow(Message& m)
   at System.Windows.Forms.Form.WndProc(Message& m)
   at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparamThe program '[5976] StoredProcedure.exe' has exited with code 0 (0x0).
)
   at System.Windows.Forms.SafeNativeMethods.ShowWindow(HandleRef hWnd, Int32 nCmdShow)
   at System.Windows.Forms.Control.SetVisibleCore(Boolean value)
   at System.Windows.Forms.Form.SetVisibleCore(Boolean value)
   at System.Windows.Forms.Control.set_Visible(Boolean value)
   at System.Windows.Forms.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.Run(Form mainForm)
   at StandardInclude.StoredProcedure.Main()



Relevant Pages

  • RE: Build number does not seem to increment
    ... Int32 msg, IntPtr wparam, IntPtr lparam) ... reason, ApplicationContext context) ... System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ...
    (microsoft.public.vsnet.general)
  • Re: Changing the DataSource of a Listbox
    ... directly the objects to the listbox's items collection called Items it works ... >> newPosition, Boolean validating, Boolean endCurrentEdit, Boolean ... >> ApplicationContext context) ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: InvalidOperationException: It is invalid to push a main message loop in this context.
    ... The InvalidOperationException is thrown when a method call fails for reasons ... System.InvalidOperationException: It is invalid to push a main message loop ... at System.Windows.Forms.ThreadContext.RunMessageLoopInner(Int32 reason, ... ApplicationContext context) ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: "A generic error occurred in GDI+." Exception
    ... hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) ... dwComponentID, Int32 reason, Int32 pvLoopData) ... reason, ApplicationContext context) ... at System.AppDomain.ExecuteAssembly(String assemblyFile, ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: How to disable the numericupdown event firing?
    ... hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) ... dwComponentID, Int32 reason, Int32 pvLoopData) ... reason, ApplicationContext context) ...
    (microsoft.public.dotnet.languages.vb)

Loading