Exception in System.Windows.Forms while application is idle 
Author Message
 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)



Mon, 11 Apr 2005 10:11:13 GMT  
 Exception in System.Windows.Forms while application is idle



Quote:
> 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.

Somebody better call Mulder and Scully... no kidding, I've seen something
similar in my own Windows Forms application some nights ago. It was sitting
idle, and all of a sudden there came this exception. Unfortunately, I didn't
really look at it and simply dismissed (it was late anyway...). I can't say
how long the app was idle, but certainly between 5 and 10 minutes. I've run
some sporadic "sit idle" tests then, but the error hasn't occurred again.

Mulder? Scully?

--
Joerg Jooss



Mon, 11 Apr 2005 16:53:35 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. System Exception in Windows.Forms: DragDrop registration failed.

2. System.Windows.Forms.Form

3. system.windows.forms.form.show()

4. Displaying XML in a System.Windows.Forms.Form control

5. Extending System.Windows.Forms.Form?

6. System.WinForms / System.Windows.Forms

7. Make Windows Form Application with VC++.NET 2002 using a visual form

8. How to convert System.Windows.Forms.Message to System.Windows.Forms.Keys?

9. Error: Unhandled Exception for Windows Form - HELP!

10. Unhandled Exception: System.Configuration.ConfigurationException: Could not create System Configuration.NameValueSectionHandler, System

11. override System.Windows.Forms.Treenode.Text

12. System.Windows.Forms & Inheritance problem

 

 
Powered by phpBB® Forum Software