Odd runtime error

A

AussieRules

I am gettin an error that I can not workout why it is happening. It seems to
happen when I select an item in my combo. Setting a break point, and
stepping through, or using try catch doesn't seem to trap it either.

From what I can see(and I look blindly) its some sort of unsafe method.

Any ideas ?



See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.Runtime.InteropServices.SEHException: External component has thrown
an exception.
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.RunMessageLoopInner(Int32 reason,
ApplicationContext context)
at System.Windows.Forms.ThreadContext.RunMessageLoop(Int32 reason,
ApplicationContext context)
at System.Windows.Forms.Application.RunDialog(Form form)
at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
at System.Windows.Forms.Form.ShowDialog()
at reStudioV2.frmMain.DataGrid1_DoubleClick(Object sender, EventArgs e)
in C:\Documents and Settings\blah\My Documents\Visual Studio
Projects\reStudioV2\frmMain.vb:line 2281
at System.Windows.Forms.Control.OnDoubleClick(EventArgs e)
at Janus.Windows.GridEX.GridEX.OnDoubleClick(EventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons
button, Int32 clicks)
at System.Windows.Forms.Control.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)
 
T

Tom Shelton

I am gettin an error that I can not workout why it is happening. It seems to
happen when I select an item in my combo. Setting a break point, and
stepping through, or using try catch doesn't seem to trap it either.

From what I can see(and I look blindly) its some sort of unsafe method.

Any ideas ?



See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.Runtime.InteropServices.SEHException: External component has thrown
an exception.
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.RunMessageLoopInner(Int32 reason,
ApplicationContext context)
at System.Windows.Forms.ThreadContext.RunMessageLoop(Int32 reason,
ApplicationContext context)
at System.Windows.Forms.Application.RunDialog(Form form)
at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
at System.Windows.Forms.Form.ShowDialog()
at reStudioV2.frmMain.DataGrid1_DoubleClick(Object sender, EventArgs e)
in C:\Documents and Settings\blah\My Documents\Visual Studio
Projects\reStudioV2\frmMain.vb:line 2281
at System.Windows.Forms.Control.OnDoubleClick(EventArgs e)
at Janus.Windows.GridEX.GridEX.OnDoubleClick(EventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons
button, Int32 clicks)
at System.Windows.Forms.Control.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)


You wouldn't happen to be updating this component from a background
thread would you?
 
C

Chris Dunaway

I am gettin an error that I can not workout why it is happening. It seems to

I have seen this error when using the call to
Application.EnableVisualStyles followed by a Application.DoEvents.

If you have this call too many times, I think it can error out
 

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