未处理 System.Runtime.InteropServices.SEHException
Message=外部组件发生异常。
Source=TD_Mgd_3.03_9
ErrorCode=-2147467259
StackTrace:
在 odUninitialize()
在 Teigha.Runtime.Services.UnInit()
在 Teigha.Runtime.Services.~Services()
在 Teigha.Runtime.Services.Dispose(Boolean )
在 Teigha.Runtime.Services.Dispose()
在 CableSystem.Form1.CADshow_FormClosing(Object sender, FormClosingEventArgs e) 位置 D:\Softwear\project\vs_day1\CAD_demo\test_1\CableSystem\CableSystem\Form1.cs:行号 38
在 System.Windows.Forms.Form.OnFormClosing(FormClosingEventArgs e)
在 System.Windows.Forms.Form.WmClose(Message& m)
在 System.Windows.Forms.Form.WndProc(Message& m)
在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
在 System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
InnerException:
FormClosing(窗口关闭)的时候有多线程没有结束或者有ole控件没有释放,具体要看你的程序。
FormClosing(窗口关闭)的时候,有线程没有结束或者正确释放,其中丢出了win32异常。具体要调试下,在窗体关闭以前,确认这些线程和activex控件都正确释放。