
Exception in System.Windows.Forms while application is idle
I have just experienced the weirdest exception I've ever seen. I made a post
a few days ago about an odd exception we were receiving while attempting to
popup forms. The exception I just received looked similar, but it seems as
though it wasn't the result of any action at all by our code.
One of our forms was on the screen, sitting there. I was talking to my
manager for about 5 minutes, during which time I wasn't touching the
computer at all. There's no code in our system that does anything once the
form was up, so the application was just idle. I happened to look at the
screen at the right time, and I saw the entire application just collapse
with this exception :P
I'm completely bamboozled, and I don't even know how to go about reproducing
the bug, as there is no code running at the time that the exception occurs.
Can anyone shed some light on the possible cause of this exception? Any help
would be greatly appreciated.
Niall
-------------------------------------------------------------
Exception Type: System.NullReferenceException
Message: Object reference not set to an instance of an object.
Source: System.Windows.Forms
StackTrace: at
System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at
System.Windows.Forms.ComponentManager.System.Windows.Forms.UnsafeNativeMetho
ds+IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID,
Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.ThreadContext.RunMessageLoop(Int32 reason,
ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at Main(String[] Args)