Periodically users are experiencing a crash of a .Net WinForms application
running on Windows 2000. The application displays a MessageBox that is
created in the handler for the Application.ThreadException event and the
application terminates. The crashes seem to be random in that the users are
not doing the same thing in the application when they crash nor can any other
pattern be discerned. We have been unable to reproduce the problem.
Resolution: The application needs to be restarted. Any unsaved information
is lost.
Sample Stack Trace:
Type: System.NullReferenceException
Message: Object reference not set to an instance of an object.
StackTrace:
at System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr
wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at System.Windows.Forms.NativeWindow.DefWndProc(Message& m)
at System.Windows.Forms.Control.DefWndProc(Message& m)
at System.Windows.Forms.Control.WmUpdateUIState(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.ParkingWindow.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)