External Component has thrown exception message with ShowDialog()?

J

Jon Pope

Occasionally, I see the following error whenever I close a form which is
being displayed with the ShowDialog() method within my C# app:

Error message: External component has thrown an exception.
Error Source: System.Windows.Forms
Error TargetSite: IntPtr DispatchMessageW(MSG ByRef)
Error StackTrace: at
System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at
System.Windows.Forms.ComponentManager.System.Windows.Forms.UnsafeNativeMethods+IMsoComponentManager.FPushMessageLoop(Int32
dwComponentID, Int32 reason, Int32 pvLoopData)
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)


It doesn't happen all the time, but once it starts it keeps happening until
I quit and restart VS.NET.

I've tried all sorts of different ways of implementing the form to no avail.
Any help or guidance would be greatly appreciated.

Cheers, Jon
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top