|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
How to catch "Error creating window handle."In my application, on some given actions while debugging in Visual Studio, I suddenly get a "System.ComponentModel.Win32Exception was unhandled"  Message="Error creating window handle." exception. The problem is that this exception isn't raised somewhere in a method, so it just shows up, and it causes the application to shut down. Is there anyway how to catch this kinds of exceptions? Can I put somewhere a general exception handler that will catch this kind of exceptions in my application? Thanks a lot in advance, any help our hints will be really appreciated! Pieter For those who would like some more info: I'm using Visual Studio 2.0 Beta 2, VB.NET, and it happens while closing a Dockcontent of the WeifenLuo DockPanel Suite). This is the whole exception: System.ComponentModel.Win32Exception was unhandled  Message="Error creating window handle."  Source="System.Windows.Forms"  ErrorCode=-2147467259  NativeErrorCode=0  StackTrace:       at System.Windows.Forms.NativeWindow.CreateHandle(CreateParams cp)       at System.Windows.Forms.Control.CreateHandle()       at System.Windows.Forms.Control.RecreateHandleCore()       at System.Windows.Forms.ComboBox.RecreateHandleCore()       at System.Windows.Forms.ComboBox.OnFontChanged(EventArgs e)       at System.Windows.Forms.Control.OnParentFontChanged(EventArgs e)       at System.Windows.Forms.Control.OnFontChanged(EventArgs e)       at System.Windows.Forms.Control.OnParentFontChanged(EventArgs e)       at System.Windows.Forms.Control.OnFontChanged(EventArgs e)       at System.Windows.Forms.ContainerControl.OnFontChanged(EventArgs e)       at System.Windows.Forms.Form.OnFontChanged(EventArgs e)       at System.Windows.Forms.Control.AssignParent(Control value)       at System.Windows.Forms.Form.AssignParent(Control value)       at System.Windows.Forms.Control.ControlCollection.Remove(Control value)       at System.Windows.Forms.Control.set_ParentInternal(Control value)       at System.Windows.Forms.Form.set_ParentInternal(Control value)       at System.Windows.Forms.Control.set_Parent(Control value)       at WeifenLuo.WinFormsUI.DockContent.SetParent(Control value)       at WeifenLuo.WinFormsUI.DockPane.RemoveContent(DockContent content)       at WeifenLuo.WinFormsUI.DockContent.set_PanelPane(DockPane value)       at WeifenLuo.WinFormsUI.DockContent.set_Pane(DockPane value)       at WeifenLuo.WinFormsUI.DockContent.set_DockPanel(DockPanel value)       at WeifenLuo.WinFormsUI.DockContent.Dispose(Boolean disposing)       at Ghost.frmBaseForm.Dispose(Boolean disposing) in D:\NET Projecten\Code Source Sodimex - Ghost\Sodimex\GUI\frmBaseForm.Designer.vb:line 11       at Ghost.frmEntreprises.Dispose(Boolean disposing) in D:\NET Projecten\Code Source Sodimex - Ghost\Sodimex\GUI\frmEntreprises.Designer.vb:line 11       at Ghost.frmFournisseurs.Dispose(Boolean disposing) in D:\NET Projecten\Code Source Sodimex - Ghost\Sodimex\GUI\frmFournisseurs.Designer.vb:line 11       at System.ComponentModel.Component.Dispose()       at System.Windows.Forms.Form.WmClose(Message& m)       at System.Windows.Forms.Form.WndProc(Message& m)       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)       at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef hWnd, Int32 msg, Int32 wParam, Int32 lParam)       at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, Int32 lparam)       at System.Windows.Forms.Form.Close()       at WeifenLuo.WinFormsUI.DockPane.CloseContent(DockContent content)       at WeifenLuo.WinFormsUI.HiddenMdiChild.WndProc(Message& m)       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)       at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef hWnd, Int32 msg, Int32 wParam, Int32 lParam)       at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, Int32 lparam)       at System.Windows.Forms.Form.Close()       at WeifenLuo.WinFormsUI.DockContent.Dispose(Boolean disposing)       at Ghost.frmBaseForm.Dispose(Boolean disposing) in D:\NET Projecten\Code Source Sodimex - Ghost\Sodimex\GUI\frmBaseForm.Designer.vb:line 11       at Ghost.frmEntreprises.Dispose(Boolean disposing) in D:\NET Projecten\Code Source Sodimex - Ghost\Sodimex\GUI\frmEntreprises.Designer.vb:line 11       at Ghost.frmFournisseurs.Dispose(Boolean disposing) in D:\NET Projecten\Code Source Sodimex - Ghost\Sodimex\GUI\frmFournisseurs.Designer.vb:line 11       at System.ComponentModel.Component.Dispose()       at System.Windows.Forms.Form.WmClose(Message& m)       at System.Windows.Forms.Form.WndProc(Message& m)       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)       at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef hWnd, Int32 msg, Int32 wParam, Int32 lParam)       at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, Int32 lparam)       at System.Windows.Forms.Form.Close()       at WeifenLuo.WinFormsUI.DockPane.CloseContent(DockContent content)       at WeifenLuo.WinFormsUI.HiddenMdiChild.WndProc(Message& m)       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)       at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef hWnd, Int32 msg, Int32 wParam, Int32 lParam)       at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, Int32 lparam)       at System.Windows.Forms.Form.Close()       at WeifenLuo.WinFormsUI.DockContent.Dispose(Boolean disposing)       at Ghost.frmBaseForm.Dispose(Boolean disposing) in D:\NET Projecten\Code Source Sodimex - Ghost\Sodimex\GUI\frmBaseForm.Designer.vb:line 11       at Ghost.frmEntreprises.Dispose(Boolean disposing) in D:\NET Projecten\Code Source Sodimex - Ghost\Sodimex\GUI\frmEntreprises.Designer.vb:line 11       at Ghost.frmFournisseurs.Dispose(Boolean disposing) in D:\NET Projecten\Code Source Sodimex - Ghost\Sodimex\GUI\frmFournisseurs.Designer.vb:line 11       at System.ComponentModel.Component.Dispose()       at System.Windows.Forms.Form.WmClose(Message& m)       at System.Windows.Forms.Form.WndProc(Message& m)       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)       at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef hWnd, Int32 msg, Int32 wParam, Int32 lParam)       at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, Int32 lparam)       at System.Windows.Forms.Form.Close()       at WeifenLuo.WinFormsUI.DockPane.CloseContent(DockContent content)       at WeifenLuo.WinFormsUI.HiddenMdiChild.WndProc(Message& m)       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)       at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef hWnd, Int32 msg, Int32 wParam, Int32 lParam)       at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, Int32 lparam)       at System.Windows.Forms.Form.Close()       at WeifenLuo.WinFormsUI.DockContent.Dispose(Boolean disposing)       at Ghost.frmBaseForm.Dispose(Boolean disposing) in D:\NET Projecten\Code Source Sodimex - Ghost\Sodimex\GUI\frmBaseForm.Designer.vb:line 11       at Ghost.frmEntreprises.Dispose(Boolean disposing) in D:\NET Projecten\Code Source Sodimex - Ghost\Sodimex\GUI\frmEntreprises.Designer.vb:line 11       at Ghost.frmFournisseurs.Dispose(Boolean disposing) in D:\NET Projecten\Code Source Sodimex - Ghost\Sodimex\GUI\frmFournisseurs.Designer.vb:line 11       at System.ComponentModel.Component.Dispose()       at System.Windows.Forms.Form.WmClose(Message& m)       at System.Windows.Forms.Form.WndProc(Message& m)       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)       at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef hWnd, Int32 msg, Int32 wParam, Int32 lParam)       at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, Int32 lparam)       at System.Windows.Forms.Form.Close()       at WeifenLuo.WinFormsUI.DockPane.CloseContent(DockContent content)       at WeifenLuo.WinFormsUI.HiddenMdiChild.WndProc(Message& m)       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)       at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef hWnd, Int32 msg, Int32 wParam, Int32 lParam)       at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, Int32 lparam)       at System.Windows.Forms.Form.Close()       at WeifenLuo.WinFormsUI.DockContent.Dispose(Boolean disposing)       at Ghost.frmBaseForm.Dispose(Boolean disposing) in D:\NET Projecten\Code Source Sodimex - Ghost\Sodimex\GUI\frmBaseForm.Designer.vb:line 11       at Ghost.frmEntreprises.Dispose(Boolean disposing) in D:\NET Projecten\Code Source Sodimex - Ghost\Sodimex\GUI\frmEntreprises.Designer.vb:line 11       at Ghost.frmFournisseurs.Dispose(Boolean disposing) in D:\NET Projecten\Code Source Sodimex - Ghost\Sodimex\GUI\frmFournisseurs.Designer.vb:line 11       at System.ComponentModel.Component.Dispose()       at System.Windows.Forms.Form.WmClose(Message& m)       at System.Windows.Forms.Form.WndProc(Message& m)       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)       at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef hWnd, Int32 msg, Int32 wParam, Int32 lParam)       at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, Int32 lparam)       at System.Windows.Forms.Form.Close()       at WeifenLuo.WinFormsUI.DockPane.CloseContent(DockContent content)       at WeifenLuo.WinFormsUI.HiddenMdiChild.WndProc(Message& m)       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)       at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef hWnd, Int32 msg, Int32 wParam, Int32 lParam)       at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, Int32 lparam)       at System.Windows.Forms.Form.Close()       at WeifenLuo.WinFormsUI.DockContent.Dispose(Boolean disposing)       at Ghost.frmBaseForm.Dispose(Boolean disposing) in D:\NET Projecten\Code Source Sodimex - Ghost\Sodimex\GUI\frmBaseForm.Designer.vb:line 11       at Ghost.frmEntreprises.Dispose(Boolean disposing) in D:\NET Projecten\Code Source Sodimex - Ghost\Sodimex\GUI\frmEntreprises.Designer.vb:line 11       at Ghost.frmFournisseurs.Dispose(Boolean disposing) in D:\NET Projecten\Code Source Sodimex - Ghost\Sodimex\GUI\frmFournisseurs.Designer.vb:line 11       at System.ComponentModel.Component.Dispose()       at System.Windows.Forms.Form.WmClose(Message& m)       at System.Windows.Forms.Form.WndProc(Message& m)       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)       at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef hWnd, Int32 msg, Int32 wParam, Int32 lParam)       at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, Int32 lparam)       at System.Windows.Forms.Form.Close()       at WeifenLuo.WinFormsUI.DockPane.CloseContent(DockContent content)       at WeifenLuo.WinFormsUI.HiddenMdiChild.WndProc(Message& m)       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)       at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef hWnd, Int32 msg, Int32 wParam, Int32 lParam)       at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, Int32 lparam)       at System.Windows.Forms.Form.Close()       at WeifenLuo.WinFormsUI.DockContent.Dispose(Boolean disposing)       at Ghost.frmBaseForm.Dispose(Boolean disposing) in D:\NET Projecten\Code Source Sodimex - Ghost\Sodimex\GUI\frmBaseForm.Designer.vb:line 11       at Ghost.frmEntreprises.Dispose(Boolean disposing) in D:\NET Projecten\Code Source Sodimex - Ghost\Sodimex\GUI\frmEntreprises.Designer.vb:line 11       at Ghost.frmFournisseurs.Dispose(Boolean disposing) in D:\NET Projecten\Code Source Sodimex - Ghost\Sodimex\GUI\frmFournisseurs.Designer.vb:line 11       at System.ComponentModel.Component.Dispose()       at System.Windows.Forms.Form.WmClose(Message& m)       at System.Windows.Forms.Form.WndProc(Message& m)       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)       at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef hWnd, Int32 msg, Int32 wParam, Int32 lParam)       at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, Int32 lparam)       at System.Windows.Forms.Form.Close()       at WeifenLuo.WinFormsUI.DockPane.CloseContent(DockContent content)       at WeifenLuo.WinFormsUI.HiddenMdiChild.WndProc(Message& m)       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)       at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef hWnd, Int32 msg, Int32 wParam, Int32 lParam)       at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, Int32 lparam)       at System.Windows.Forms.Form.Close()       at WeifenLuo.WinFormsUI.DockContent.Dispose(Boolean disposing)       at Ghost.frmBaseForm.Dispose(Boolean disposing) in D:\NET Projecten\Code Source Sodimex - Ghost\Sodimex\GUI\frmBaseForm.Designer.vb:line 11       at Ghost.frmEntreprises.Dispose(Boolean disposing) in D:\NET Projecten\Code Source Sodimex - Ghost\Sodimex\GUI\frmEntreprises.Designer.vb:line 11       at Ghost.frmFournisseurs.Dispose(Boolean disposing) in D:\NET Projecten\Code Source Sodimex - Ghost\Sodimex\GUI\frmFournisseurs.Designer.vb:line 11       at System.ComponentModel.Component.Dispose()       at System.Windows.Forms.Form.WmClose(Message& m)       at System.Windows.Forms.Form.WndProc(Message& m)       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)       at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef hWnd, Int32 msg, Int32 wParam, Int32 lParam)       at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, Int32 lparam)       at System.Windows.Forms.Form.Close()       at WeifenLuo.WinFormsUI.DockPane.CloseContent(DockContent content)       at WeifenLuo.WinFormsUI.HiddenMdiChild.WndProc(Message& m)       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)       at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef hWnd, Int32 msg, Int32 wParam, Int32 lParam)       at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, Int32 lparam)       at System.Windows.Forms.Form.Close()       at WeifenLuo.WinFormsUI.DockContent.Dispose(Boolean disposing)       at Ghost.frmBaseForm.Dispose(Boolean disposing) in D:\NET Projecten\Code Source Sodimex - Ghost\Sodimex\GUI\frmBaseForm.Designer.vb:line 11       at Ghost.frmEntreprises.Dispose(Boolean disposing) in D:\NET Projecten\Code Source Sodimex - Ghost\Sodimex\GUI\frmEntreprises.Designer.vb:line 11       at Ghost.frmFournisseurs.Dispose(Boolean disposing) in D:\NET Projecten\Code Source Sodimex - Ghost\Sodimex\GUI\frmFournisseurs.Designer.vb:line 11       at System.ComponentModel.Component.Dispose()       at System.Windows.Forms.Form.WmClose(Message& m)       at System.Windows.Forms.Form.WndProc(Message& m)       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)       at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef hWnd, Int32 msg, Int32 wParam, Int32 lParam)       at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, Int32 lparam)       at System.Windows.Forms.Form.Close()       at WeifenLuo.WinFormsUI.DockPane.CloseContent(DockContent content)       at WeifenLuo.WinFormsUI.HiddenMdiChild.WndProc(Message& m)       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)       at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef hWnd, Int32 msg, Int32 wParam, Int32 lParam)       at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, Int32 lparam)       at System.Windows.Forms.Form.Close()       at WeifenLuo.WinFormsUI.DockContent.Dispose(Boolean disposing)       at Ghost.frmBaseForm.Dispose(Boolean disposing) in D:\NET Projecten\Code Source Sodimex - Ghost\Sodimex\GUI\frmBaseForm.Designer.vb:line 11       at Ghost.frmEntreprises.Dispose(Boolean disposing) in D:\NET Projecten\Code Source Sodimex - Ghost\Sodimex\GUI\frmEntreprises.Designer.vb:line 11       at Ghost.frmFournisseurs.Dispose(Boolean disposing) in D:\NET Projecten\Code Source Sodimex - Ghost\Sodimex\GUI\frmFournisseurs.Designer.vb:line 11       at System.ComponentModel.Component.Dispose()       at System.Windows.Forms.Form.WmClose(Message& m)       at System.Windows.Forms.Form.WndProc(Message& m)       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)       at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef hWnd, Int32 msg, Int32 wParam, Int32 lParam)       at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, Int32 lparam)       at System.Windows.Forms.Form.Close()       at WeifenLuo.WinFormsUI.DockPane.CloseContent(DockContent content)       at WeifenLuo.WinFormsUI.HiddenMdiChild.WndProc(Message& m)       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)       at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef hWnd, Int32 msg, Int32 wParam, Int32 lParam)       at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, Int32 lparam)       at System.Windows.Forms.Form.Close()       at WeifenLuo.WinFormsUI.DockContent.Dispose(Boolean disposing)       at Ghost.frmBaseForm.Dispose(Boolean disposing) in D:\NET Projecten\Code Source Sodimex - Ghost\Sodimex\GUI\frmBaseForm.Designer.vb:line 11       at Ghost.frmEntreprises.Dispose(Boolean disposing) in D:\NET Projecten\Code Source Sodimex - Ghost\Sodimex\GUI\frmEntreprises.Designer.vb:line 11       at Ghost.frmFournisseurs.Dispose(Boolean disposing) in D:\NET Projecten\Code Source Sodimex - Ghost\Sodimex\GUI\frmFournisseurs.Designer.vb:line 11       at System.ComponentModel.Component.Dispose()       at System.Windows.Forms.Form.WmClose(Message& m)       at System.Windows.Forms.Form.WndProc(Message& m)       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)       at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef hWnd, Int32 msg, Int32 wParam, Int32 lParam)       at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, Int32 lparam)       at System.Windows.Forms.Form.Close()       at WeifenLuo.WinFormsUI.DockPane.CloseContent(DockContent content)       at WeifenLuo.WinFormsUI.HiddenMdiChild.WndProc(Message& m)       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)       at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef hWnd, Int32 msg, Int32 wParam, Int32 lParam)       at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, Int32 lparam)       at System.Windows.Forms.Form.Close()       at WeifenLuo.WinFormsUI.DockContent.Dispose(Boolean disposing)       at Ghost.frmBaseForm.Dispose(Boolean disposing) in D:\NET Projecten\Code Source Sodimex - Ghost\Sodimex\GUI\frmBaseForm.Designer.vb:line 11       at Ghost.frmEntreprises.Dispose(Boolean disposing) in D:\NET Projecten\Code Source Sodimex - Ghost\Sodimex\GUI\frmEntreprises.Designer.vb:line 11       at Ghost.frmFournisseurs.Dispose(Boolean disposing) in D:\NET Projecten\Code Source Sodimex - Ghost\Sodimex\GUI\frmFournisseurs.Designer.vb:line 11       at System.ComponentModel.Component.Dispose()       at System.Windows.Forms.Form.WmClose(Message& m)       at System.Windows.Forms.Form.WndProc(Message& m)       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)       at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef hWnd, Int32 msg, Int32 wParam, Int32 lParam)       at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, Int32 lparam)       at System.Windows.Forms.Form.Close()       at WeifenLuo.WinFormsUI.DockPane.CloseContent(DockContent content)       at WeifenLuo.WinFormsUI.HiddenMdiChild.WndProc(Message& m)       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)       at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef hWnd, Int32 msg, Int32 wParam, Int32 lParam)       at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, Int32 lparam)       at System.Windows.Forms.Form.Close()       at WeifenLuo.WinFormsUI.DockContent.Dispose(Boolean disposing)       at Ghost.frmBaseForm.Dispose(Boolean disposing) in D:\NET Projecten\Code Source Sodimex - Ghost\Sodimex\GUI\frmBaseForm.Designer.vb:line 11       at Ghost.frmEntreprises.Dispose(Boolean disposing) in D:\NET Projecten\Code Source Sodimex - Ghost\Sodimex\GUI\frmEntreprises.Designer.vb:line 11       at Ghost.frmFournisseurs.Dispose(Boolean disposing) in D:\NET Projecten\Code Source Sodimex - Ghost\Sodimex\GUI\frmFournisseurs.Designer.vb:line 11       at System.ComponentModel.Component.Dispose()       at System.Windows.Forms.Form.WmClose(Message& m)       at System.Windows.Forms.Form.WndProc(Message& m)       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)       at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef hWnd, Int32 msg, Int32 wParam, Int32 lParam)       at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, Int32 lparam)       at System.Windows.Forms.Form.Close()       at WeifenLuo.WinFormsUI.DockPane.CloseContent(DockContent content)       at WeifenLuo.WinFormsUI.HiddenMdiChild.WndProc(Message& m)       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)       at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef hWnd, Int32 msg, Int32 wParam, Int32 lParam)       at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, Int32 lparam)       at System.Windows.Forms.Form.Close()       at WeifenLuo.WinFormsUI.DockContent.Dispose(Boolean disposing)       at Ghost.frmBaseForm.Dispose(Boolean disposing) in D:\NET Projecten\Code Source Sodimex - Ghost\Sodimex\GUI\frmBaseForm.Designer.vb:line 11       at Ghost.frmEntreprises.Dispose(Boolean disposing) in D:\NET Projecten\Code Source Sodimex - Ghost\Sodimex\GUI\frmEntreprises.Designer.vb:line 11       at Ghost.frmFournisseurs.Dispose(Boolean disposing) in D:\NET Projecten\Code Source Sodimex - Ghost\Sodimex\GUI\frmFournisseurs.Designer.vb:line 11       at System.ComponentModel.Component.Dispose()       at System.Windows.Forms.Form.WmClose(Message& m)       at System.Windows.Forms.Form.WndProc(Message& m)       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)       at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef hWnd, Int32 msg, Int32 wParam, Int32 lParam)       at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, Int32 lparam)       at System.Windows.Forms.Form.Close()       at WeifenLuo.WinFormsUI.DockPane.CloseContent(DockContent content)       at WeifenLuo.WinFormsUI.HiddenMdiChild.WndProc(Message& m)       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)       at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef hWnd, Int32 msg, Int32 wParam, Int32 lParam)       at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, Int32 lparam)       at System.Windows.Forms.Form.Close()       at WeifenLuo.WinFormsUI.DockContent.Dispose(Boolean disposing)       at Ghost.frmBaseForm.Dispose(Boolean disposing) in D:\NET Projecten\Code Source Sodimex - Ghost\Sodimex\GUI\frmBaseForm.Designer.vb:line 11       at Ghost.frmEntreprises.Dispose(Boolean disposing) in D:\NET Projecten\Code Source Sodimex - Ghost\Sodimex\GUI\frmEntreprises.Designer.vb:line 11       at Ghost.frmFournisseurs.Dispose(Boolean disposing) in D:\NET Projecten\Code Source Sodimex - Ghost\Sodimex\GUI\frmFournisseurs.Designer.vb:line 11       at System.ComponentModel.Component.Dispose()       at System.Windows.Forms.Form.WmClose(Message& m)       at System.Windows.Forms.Form.WndProc(Message& m)       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)       at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef hWnd, Int32 msg, Int32 wParam, Int32 lParam)       at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, Int32 lparam)       at System.Windows.Forms.Form.Close()       at WeifenLuo.WinFormsUI.DockPane.CloseContent(DockContent content)       at WeifenLuo.WinFormsUI.HiddenMdiChild.WndProc(Message& m)       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)       at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef hWnd, Int32 msg, Int32 wParam, Int32 lParam)       at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, Int32 lparam)       at System.Windows.Forms.Form.Close()       at WeifenLuo.WinFormsUI.DockContent.Dispose(Boolean disposing)       at Ghost.frmBaseForm.Dispose(Boolean disposing) in D:\NET Projecten\Code Source Sodimex - Ghost\Sodimex\GUI\frmBaseForm.Designer.vb:line 11       at Ghost.frmEntreprises.Dispose(Boolean disposing) in D:\NET Projecten\Code Source Sodimex - Ghost\Sodimex\GUI\frmEntreprises.Designer.vb:line 11       at Ghost.frmFournisseurs.Dispose(Boolean disposing) in D:\NET Projecten\Code Source Sodimex - Ghost\Sodimex\GUI\frmFournisseurs.Designer.vb:line 11       at System.ComponentModel.Component.Dispose()       at System.Windows.Forms.Form.WmClose(Message& m)       at System.Windows.Forms.Form.WndProc(Message& m)       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)       at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef hWnd, Int32 msg, Int32 wParam, Int32 lParam)       at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, Int32 lparam)       at System.Windows.Forms.Form.Close()       at WeifenLuo.WinFormsUI.DockPane.CloseContent(DockContent content)       at WeifenLuo.WinFormsUI.HiddenMdiChild.WndProc(Message& m)       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)       at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef hWnd, Int32 msg, Int32 wParam, Int32 lParam)       at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, Int32 lparam)       at System.Windows.Forms.Form.Close()       at WeifenLuo.WinFormsUI.DockContent.Dispose(Boolean disposing)       at Ghost.frmBaseForm.Dispose(Boolean disposing) in D:\NET Projecten\Code Source Sodimex - Ghost\Sodimex\GUI\frmBaseForm.Designer.vb:line 11       at Ghost.frmEntreprises.Dispose(Boolean disposing) in D:\NET Projecten\Code Source Sodimex - Ghost\Sodimex\GUI\frmEntreprises.Designer.vb:line 11       at Ghost.frmFournisseurs.Dispose(Boolean disposing) in D:\NET Projecten\Code Source Sodimex - Ghost\Sodimex\GUI\frmFournisseurs.Designer.vb:line 11       at System.ComponentModel.Component.Dispose()       at System.Windows.Forms.Form.WmClose(Message& m)       at System.Windows.Forms.Form.WndProc(Message& m)       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)       at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef hWnd, Int32 msg, Int32 wParam, Int32 lParam)       at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, Int32 lparam)       at System.Windows.Forms.Form.Close()       at WeifenLuo.WinFormsUI.DockPane.CloseContent(DockContent content)       at WeifenLuo.WinFormsUI.HiddenMdiChild.WndProc(Message& m)       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)       at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef hWnd, Int32 msg, Int32 wParam, Int32 lParam)       at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, Int32 lparam)       at System.Windows.Forms.Form.Close()       at WeifenLuo.WinFormsUI.DockContent.Dispose(Boolean disposing)       at Ghost.frmBaseForm.Dispose(Boolean disposing) in D:\NET Projecten\Code Source Sodimex - Ghost\Sodimex\GUI\frmBaseForm.Designer.vb:line 11       at Ghost.frmEntreprises.Dispose(Boolean disposing) in D:\NET Projecten\Code Source Sodimex - Ghost\Sodimex\GUI\frmEntreprises.Designer.vb:line 11       at Ghost.frmFournisseurs.Dispose(Boolean disposing) in D:\NET Projecten\Code Source Sodimex - Ghost\Sodimex\GUI\frmFournisseurs.Designer.vb:line 11       at System.ComponentModel.Component.Dispose()       at System.Windows.Forms.Form.WmClose(Message& m)       at System.Windows.Forms.Form.WndProc(Message& m)       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)       at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef hWnd, Int32 msg, Int32 wParam, Int32 lParam)       at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, Int32 lparam)       at System.Windows.Forms.Form.Close()       at WeifenLuo.WinFormsUI.DockPane.CloseContent(DockContent content)       at WeifenLuo.WinFormsUI.HiddenMdiChild.WndProc(Message& m)       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)       at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef hWnd, Int32 msg, Int32 wParam, Int32 lParam)       at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, Int32 lparam)       at System.Windows.Forms.Form.Close()       at WeifenLuo.WinFormsUI.DockContent.Dispose(Boolean disposing)       at Ghost.frmBaseForm.Dispose(Boolean disposing) in D:\NET Projecten\Code Source Sodimex - Ghost\Sodimex\GUI\frmBaseForm.Designer.vb:line 11       at Ghost.frmEntreprises.Dispose(Boolean disposing) in D:\NET Projecten\Code Source Sodimex - Ghost\Sodimex\GUI\frmEntreprises.Designer.vb:line 11       at Ghost.frmFournisseurs.Dispose(Boolean disposing) in D:\NET Projecten\Code Source Sodimex - Ghost\Sodimex\GUI\frmFournisseurs.Designer.vb:line 11       at System.ComponentModel.Component.Dispose()       at System.Windows.Forms.Form.WmClose(Message& m)       at System.Windows.Forms.Form.WndProc(Message& m)       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)       at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef hWnd, Int32 msg, Int32 wParam, Int32 lParam)       at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, Int32 lparam)       at System.Windows.Forms.Form.Close()       at WeifenLuo.WinFormsUI.DockPane.CloseContent(DockContent content)       at WeifenLuo.WinFormsUI.HiddenMdiChild.WndProc(Message& m)       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)       at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef hWnd, Int32 msg, Int32 wParam, Int32 lParam)       at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, Int32 lparam)       at System.Windows.Forms.Form.Close()       at WeifenLuo.WinFormsUI.DockContent.Dispose(Boolean disposing)       at Ghost.frmBaseForm.Dispose(Boolean disposing) in D:\NET Projecten\Code Source Sodimex - Ghost\Sodimex\GUI\frmBaseForm.Designer.vb:line 11       at Ghost.frmEntreprises.Dispose(Boolean disposing) in D:\NET Projecten\Code Source Sodimex - Ghost\Sodimex\GUI\frmEntreprises.Designer.vb:line 11       at Ghost.frmFournisseurs.Dispose(Boolean disposing) in D:\NET Projecten\Code Source Sodimex - Ghost\Sodimex\GUI\frmFournisseurs.Designer.vb:line 11       at System.ComponentModel.Component.Dispose()       at System.Windows.Forms.Form.WmClose(Message& m)       at System.Windows.Forms.Form.WndProc(Message& m)       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)       at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef hWnd, Int32 msg, Int32 wParam, Int32 lParam)       at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, Int32 lparam)       at System.Windows.Forms.Form.Close()       at WeifenLuo.WinFormsUI.DockPane.CloseContent(DockContent content)       at WeifenLuo.WinFormsUI.DockPane.CloseActiveContent()       at WeifenLuo.WinFormsUI.DockPaneStripVS2003.Close_Click(Object sender, EventArgs e)       at System.Windows.Forms.Control.OnClick(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.Control.ControlNativeWindow.OnMessage(Message& m)       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)       at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)       at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)       at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)       at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)       at System.Windows.Forms.Application.Run(ApplicationContext context)       at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()       at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()       at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)       at Ghost.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 76       at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)       at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)       at System.Threading.ThreadHelper.ThreadStart() If you just write a handler for the general Exception class, this exception
will be caught, then you can take proper corrective action. ---------------- -Atul, Sky Software http://www.ssware.com Shell MegaPack For .Net & ActiveX : Windows Explorer GUI Controls  & Quick-Launch Like Appbars, MSN/Office2003 Style Popups, System Tray Icons and Shortcuts/Internet Shortcuts ---------------- Show quote "DraguVaso" <pietercou***@hotmail.com> wrote in message news:%23pXd3yvzFHA.720@TK2MSFTNGP15.phx.gbl... > Hi, > > In my application, on some given actions while debugging in Visual Studio, > I suddenly get a "System.ComponentModel.Win32Exception was unhandled" > Message="Error creating window handle." exception. > > The problem is that this exception isn't raised somewhere in a method, so > it just shows up, and it causes the application to shut down. > > Is there anyway how to catch this kinds of exceptions? Can I put somewhere > a general exception handler that will catch this kind of exceptions in my > application? > > Thanks a lot in advance, any help our hints will be really appreciated! > > Pieter > > > For those who would like some more info: I'm using Visual Studio 2.0 Beta > 2, VB.NET, and it happens while closing a Dockcontent of the WeifenLuo > DockPanel Suite). > > This is the whole exception: > > System.ComponentModel.Win32Exception was unhandled > Message="Error creating window handle." > Source="System.Windows.Forms" > ErrorCode=-2147467259 > NativeErrorCode=0 > StackTrace: >      at System.Windows.Forms.NativeWindow.CreateHandle(CreateParams cp) > >      at System.Windows.Forms.Control.CreateHandle() > >      at System.Windows.Forms.Control.RecreateHandleCore() > >      at System.Windows.Forms.ComboBox.RecreateHandleCore() > >      at System.Windows.Forms.ComboBox.OnFontChanged(EventArgs e) > >      at System.Windows.Forms.Control.OnParentFontChanged(EventArgs e) > >      at System.Windows.Forms.Control.OnFontChanged(EventArgs e) > >      at System.Windows.Forms.Control.OnParentFontChanged(EventArgs e) > >      at System.Windows.Forms.Control.OnFontChanged(EventArgs e) > >      at System.Windows.Forms.ContainerControl.OnFontChanged(EventArgs e) > >      at System.Windows.Forms.Form.OnFontChanged(EventArgs e) > >      at System.Windows.Forms.Control.AssignParent(Control value) > >      at System.Windows.Forms.Form.AssignParent(Control value) > >      at System.Windows.Forms.Control.ControlCollection.Remove(Control > value) > >      at System.Windows.Forms.Control.set_ParentInternal(Control value) > >      at System.Windows.Forms.Form.set_ParentInternal(Control value) > >      at System.Windows.Forms.Control.set_Parent(Control value) > >      at WeifenLuo.WinFormsUI.DockContent.SetParent(Control value) > >      at WeifenLuo.WinFormsUI.DockPane.RemoveContent(DockContent content) > >      at WeifenLuo.WinFormsUI.DockContent.set_PanelPane(DockPane value) > >      at WeifenLuo.WinFormsUI.DockContent.set_Pane(DockPane value) > >      at WeifenLuo.WinFormsUI.DockContent.set_DockPanel(DockPanel value) > >      at WeifenLuo.WinFormsUI.DockContent.Dispose(Boolean disposing) > >      at Ghost.frmBaseForm.Dispose(Boolean disposing) in D:\NET > Projecten\Code Source Sodimex - > Ghost\Sodimex\GUI\frmBaseForm.Designer.vb:line 11 > >      at Ghost.frmEntreprises.Dispose(Boolean disposing) in D:\NET > Projecten\Code Source Sodimex - > Ghost\Sodimex\GUI\frmEntreprises.Designer.vb:line 11 > >      at Ghost.frmFournisseurs.Dispose(Boolean disposing) in D:\NET > Projecten\Code Source Sodimex - > Ghost\Sodimex\GUI\frmFournisseurs.Designer.vb:line 11 > >      at System.ComponentModel.Component.Dispose() > >      at System.Windows.Forms.Form.WmClose(Message& m) > >      at System.Windows.Forms.Form.WndProc(Message& m) > >      at > System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) > >      at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& > m) > >      at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, > Int32 msg, IntPtr wparam, IntPtr lparam) > >      at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef > hWnd, Int32 msg, Int32 wParam, Int32 lParam) > >      at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, > Int32 lparam) > >      at System.Windows.Forms.Form.Close() > >      at WeifenLuo.WinFormsUI.DockPane.CloseContent(DockContent content) > >      at WeifenLuo.WinFormsUI.HiddenMdiChild.WndProc(Message& m) > >      at > System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) > >      at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& > m) > >      at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, > Int32 msg, IntPtr wparam, IntPtr lparam) > >      at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef > hWnd, Int32 msg, Int32 wParam, Int32 lParam) > >      at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, > Int32 lparam) > >      at System.Windows.Forms.Form.Close() > >      at WeifenLuo.WinFormsUI.DockContent.Dispose(Boolean disposing) > >      at Ghost.frmBaseForm.Dispose(Boolean disposing) in D:\NET > Projecten\Code Source Sodimex - > Ghost\Sodimex\GUI\frmBaseForm.Designer.vb:line 11 > >      at Ghost.frmEntreprises.Dispose(Boolean disposing) in D:\NET > Projecten\Code Source Sodimex - > Ghost\Sodimex\GUI\frmEntreprises.Designer.vb:line 11 > >      at Ghost.frmFournisseurs.Dispose(Boolean disposing) in D:\NET > Projecten\Code Source Sodimex - > Ghost\Sodimex\GUI\frmFournisseurs.Designer.vb:line 11 > >      at System.ComponentModel.Component.Dispose() > >      at System.Windows.Forms.Form.WmClose(Message& m) > >      at System.Windows.Forms.Form.WndProc(Message& m) > >      at > System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) > >      at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& > m) > >      at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, > Int32 msg, IntPtr wparam, IntPtr lparam) > >      at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef > hWnd, Int32 msg, Int32 wParam, Int32 lParam) > >      at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, > Int32 lparam) > >      at System.Windows.Forms.Form.Close() > >      at WeifenLuo.WinFormsUI.DockPane.CloseContent(DockContent content) > >      at WeifenLuo.WinFormsUI.HiddenMdiChild.WndProc(Message& m) > >      at > System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) > >      at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& > m) > >      at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, > Int32 msg, IntPtr wparam, IntPtr lparam) > >      at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef > hWnd, Int32 msg, Int32 wParam, Int32 lParam) > >      at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, > Int32 lparam) > >      at System.Windows.Forms.Form.Close() > >      at WeifenLuo.WinFormsUI.DockContent.Dispose(Boolean disposing) > >      at Ghost.frmBaseForm.Dispose(Boolean disposing) in D:\NET > Projecten\Code Source Sodimex - > Ghost\Sodimex\GUI\frmBaseForm.Designer.vb:line 11 > >      at Ghost.frmEntreprises.Dispose(Boolean disposing) in D:\NET > Projecten\Code Source Sodimex - > Ghost\Sodimex\GUI\frmEntreprises.Designer.vb:line 11 > >      at Ghost.frmFournisseurs.Dispose(Boolean disposing) in D:\NET > Projecten\Code Source Sodimex - > Ghost\Sodimex\GUI\frmFournisseurs.Designer.vb:line 11 > >      at System.ComponentModel.Component.Dispose() > >      at System.Windows.Forms.Form.WmClose(Message& m) > >      at System.Windows.Forms.Form.WndProc(Message& m) > >      at > System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) > >      at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& > m) > >      at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, > Int32 msg, IntPtr wparam, IntPtr lparam) > >      at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef > hWnd, Int32 msg, Int32 wParam, Int32 lParam) > >      at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, > Int32 lparam) > >      at System.Windows.Forms.Form.Close() > >      at WeifenLuo.WinFormsUI.DockPane.CloseContent(DockContent content) > >      at WeifenLuo.WinFormsUI.HiddenMdiChild.WndProc(Message& m) > >      at > System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) > >      at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& > m) > >      at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, > Int32 msg, IntPtr wparam, IntPtr lparam) > >      at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef > hWnd, Int32 msg, Int32 wParam, Int32 lParam) > >      at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, > Int32 lparam) > >      at System.Windows.Forms.Form.Close() > >      at WeifenLuo.WinFormsUI.DockContent.Dispose(Boolean disposing) > >      at Ghost.frmBaseForm.Dispose(Boolean disposing) in D:\NET > Projecten\Code Source Sodimex - > Ghost\Sodimex\GUI\frmBaseForm.Designer.vb:line 11 > >      at Ghost.frmEntreprises.Dispose(Boolean disposing) in D:\NET > Projecten\Code Source Sodimex - > Ghost\Sodimex\GUI\frmEntreprises.Designer.vb:line 11 > >      at Ghost.frmFournisseurs.Dispose(Boolean disposing) in D:\NET > Projecten\Code Source Sodimex - > Ghost\Sodimex\GUI\frmFournisseurs.Designer.vb:line 11 > >      at System.ComponentModel.Component.Dispose() > >      at System.Windows.Forms.Form.WmClose(Message& m) > >      at System.Windows.Forms.Form.WndProc(Message& m) > >      at > System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) > >      at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& > m) > >      at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, > Int32 msg, IntPtr wparam, IntPtr lparam) > >      at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef > hWnd, Int32 msg, Int32 wParam, Int32 lParam) > >      at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, > Int32 lparam) > >      at System.Windows.Forms.Form.Close() > >      at WeifenLuo.WinFormsUI.DockPane.CloseContent(DockContent content) > >      at WeifenLuo.WinFormsUI.HiddenMdiChild.WndProc(Message& m) > >      at > System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) > >      at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& > m) > >      at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, > Int32 msg, IntPtr wparam, IntPtr lparam) > >      at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef > hWnd, Int32 msg, Int32 wParam, Int32 lParam) > >      at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, > Int32 lparam) > >      at System.Windows.Forms.Form.Close() > >      at WeifenLuo.WinFormsUI.DockContent.Dispose(Boolean disposing) > >      at Ghost.frmBaseForm.Dispose(Boolean disposing) in D:\NET > Projecten\Code Source Sodimex - > Ghost\Sodimex\GUI\frmBaseForm.Designer.vb:line 11 > >      at Ghost.frmEntreprises.Dispose(Boolean disposing) in D:\NET > Projecten\Code Source Sodimex - > Ghost\Sodimex\GUI\frmEntreprises.Designer.vb:line 11 > >      at Ghost.frmFournisseurs.Dispose(Boolean disposing) in D:\NET > Projecten\Code Source Sodimex - > Ghost\Sodimex\GUI\frmFournisseurs.Designer.vb:line 11 > >      at System.ComponentModel.Component.Dispose() > >      at System.Windows.Forms.Form.WmClose(Message& m) > >      at System.Windows.Forms.Form.WndProc(Message& m) > >      at > System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) > >      at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& > m) > >      at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, > Int32 msg, IntPtr wparam, IntPtr lparam) > >      at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef > hWnd, Int32 msg, Int32 wParam, Int32 lParam) > >      at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, > Int32 lparam) > >      at System.Windows.Forms.Form.Close() > >      at WeifenLuo.WinFormsUI.DockPane.CloseContent(DockContent content) > >      at WeifenLuo.WinFormsUI.HiddenMdiChild.WndProc(Message& m) > >      at > System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) > >      at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& > m) > >      at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, > Int32 msg, IntPtr wparam, IntPtr lparam) > >      at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef > hWnd, Int32 msg, Int32 wParam, Int32 lParam) > >      at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, > Int32 lparam) > >      at System.Windows.Forms.Form.Close() > >      at WeifenLuo.WinFormsUI.DockContent.Dispose(Boolean disposing) > >      at Ghost.frmBaseForm.Dispose(Boolean disposing) in D:\NET > Projecten\Code Source Sodimex - > Ghost\Sodimex\GUI\frmBaseForm.Designer.vb:line 11 > >      at Ghost.frmEntreprises.Dispose(Boolean disposing) in D:\NET > Projecten\Code Source Sodimex - > Ghost\Sodimex\GUI\frmEntreprises.Designer.vb:line 11 > >      at Ghost.frmFournisseurs.Dispose(Boolean disposing) in D:\NET > Projecten\Code Source Sodimex - > Ghost\Sodimex\GUI\frmFournisseurs.Designer.vb:line 11 > >      at System.ComponentModel.Component.Dispose() > >      at System.Windows.Forms.Form.WmClose(Message& m) > >      at System.Windows.Forms.Form.WndProc(Message& m) > >      at > System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) > >      at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& > m) > >      at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, > Int32 msg, IntPtr wparam, IntPtr lparam) > >      at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef > hWnd, Int32 msg, Int32 wParam, Int32 lParam) > >      at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, > Int32 lparam) > >      at System.Windows.Forms.Form.Close() > >      at WeifenLuo.WinFormsUI.DockPane.CloseContent(DockContent content) > >      at WeifenLuo.WinFormsUI.HiddenMdiChild.WndProc(Message& m) > >      at > System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) > >      at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& > m) > >      at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, > Int32 msg, IntPtr wparam, IntPtr lparam) > >      at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef > hWnd, Int32 msg, Int32 wParam, Int32 lParam) > >      at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, > Int32 lparam) > >      at System.Windows.Forms.Form.Close() > >      at WeifenLuo.WinFormsUI.DockContent.Dispose(Boolean disposing) > >      at Ghost.frmBaseForm.Dispose(Boolean disposing) in D:\NET > Projecten\Code Source Sodimex - > Ghost\Sodimex\GUI\frmBaseForm.Designer.vb:line 11 > >      at Ghost.frmEntreprises.Dispose(Boolean disposing) in D:\NET > Projecten\Code Source Sodimex - > Ghost\Sodimex\GUI\frmEntreprises.Designer.vb:line 11 > >      at Ghost.frmFournisseurs.Dispose(Boolean disposing) in D:\NET > Projecten\Code Source Sodimex - > Ghost\Sodimex\GUI\frmFournisseurs.Designer.vb:line 11 > >      at System.ComponentModel.Component.Dispose() > >      at System.Windows.Forms.Form.WmClose(Message& m) > >      at System.Windows.Forms.Form.WndProc(Message& m) > >      at > System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) > >      at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& > m) > >      at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, > Int32 msg, IntPtr wparam, IntPtr lparam) > >      at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef > hWnd, Int32 msg, Int32 wParam, Int32 lParam) > >      at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, > Int32 lparam) > >      at System.Windows.Forms.Form.Close() > >      at WeifenLuo.WinFormsUI.DockPane.CloseContent(DockContent content) > >      at WeifenLuo.WinFormsUI.HiddenMdiChild.WndProc(Message& m) > >      at > System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) > >      at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& > m) > >      at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, > Int32 msg, IntPtr wparam, IntPtr lparam) > >      at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef > hWnd, Int32 msg, Int32 wParam, Int32 lParam) > >      at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, > Int32 lparam) > >      at System.Windows.Forms.Form.Close() > >      at WeifenLuo.WinFormsUI.DockContent.Dispose(Boolean disposing) > >      at Ghost.frmBaseForm.Dispose(Boolean disposing) in D:\NET > Projecten\Code Source Sodimex - > Ghost\Sodimex\GUI\frmBaseForm.Designer.vb:line 11 > >      at Ghost.frmEntreprises.Dispose(Boolean disposing) in D:\NET > Projecten\Code Source Sodimex - > Ghost\Sodimex\GUI\frmEntreprises.Designer.vb:line 11 > >      at Ghost.frmFournisseurs.Dispose(Boolean disposing) in D:\NET > Projecten\Code Source Sodimex - > Ghost\Sodimex\GUI\frmFournisseurs.Designer.vb:line 11 > >      at System.ComponentModel.Component.Dispose() > >      at System.Windows.Forms.Form.WmClose(Message& m) > >      at System.Windows.Forms.Form.WndProc(Message& m) > >      at > System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) > >      at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& > m) > >      at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, > Int32 msg, IntPtr wparam, IntPtr lparam) > >      at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef > hWnd, Int32 msg, Int32 wParam, Int32 lParam) > >      at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, > Int32 lparam) > >      at System.Windows.Forms.Form.Close() > >      at WeifenLuo.WinFormsUI.DockPane.CloseContent(DockContent content) > >      at WeifenLuo.WinFormsUI.HiddenMdiChild.WndProc(Message& m) > >      at > System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) > >      at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& > m) > >      at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, > Int32 msg, IntPtr wparam, IntPtr lparam) > >      at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef > hWnd, Int32 msg, Int32 wParam, Int32 lParam) > >      at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, > Int32 lparam) > >      at System.Windows.Forms.Form.Close() > >      at WeifenLuo.WinFormsUI.DockContent.Dispose(Boolean disposing) > >      at Ghost.frmBaseForm.Dispose(Boolean disposing) in D:\NET > Projecten\Code Source Sodimex - > Ghost\Sodimex\GUI\frmBaseForm.Designer.vb:line 11 > >      at Ghost.frmEntreprises.Dispose(Boolean disposing) in D:\NET > Projecten\Code Source Sodimex - > Ghost\Sodimex\GUI\frmEntreprises.Designer.vb:line 11 > >      at Ghost.frmFournisseurs.Dispose(Boolean disposing) in D:\NET > Projecten\Code Source Sodimex - > Ghost\Sodimex\GUI\frmFournisseurs.Designer.vb:line 11 > >      at System.ComponentModel.Component.Dispose() > >      at System.Windows.Forms.Form.WmClose(Message& m) > >      at System.Windows.Forms.Form.WndProc(Message& m) > >      at > System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) > >      at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& > m) > >      at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, > Int32 msg, IntPtr wparam, IntPtr lparam) > >      at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef > hWnd, Int32 msg, Int32 wParam, Int32 lParam) > >      at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, > Int32 lparam) > >      at System.Windows.Forms.Form.Close() > >      at WeifenLuo.WinFormsUI.DockPane.CloseContent(DockContent content) > >      at WeifenLuo.WinFormsUI.HiddenMdiChild.WndProc(Message& m) > >      at > System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) > >      at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& > m) > >      at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, > Int32 msg, IntPtr wparam, IntPtr lparam) > >      at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef > hWnd, Int32 msg, Int32 wParam, Int32 lParam) > >      at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, > Int32 lparam) > >      at System.Windows.Forms.Form.Close() > >      at WeifenLuo.WinFormsUI.DockContent.Dispose(Boolean disposing) > >      at Ghost.frmBaseForm.Dispose(Boolean disposing) in D:\NET > Projecten\Code Source Sodimex - > Ghost\Sodimex\GUI\frmBaseForm.Designer.vb:line 11 > >      at Ghost.frmEntreprises.Dispose(Boolean disposing) in D:\NET > Projecten\Code Source Sodimex - > Ghost\Sodimex\GUI\frmEntreprises.Designer.vb:line 11 > >      at Ghost.frmFournisseurs.Dispose(Boolean disposing) in D:\NET > Projecten\Code Source Sodimex - > Ghost\Sodimex\GUI\frmFournisseurs.Designer.vb:line 11 > >      at System.ComponentModel.Component.Dispose() > >      at System.Windows.Forms.Form.WmClose(Message& m) > >      at System.Windows.Forms.Form.WndProc(Message& m) > >      at > System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) > >      at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& > m) > >      at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, > Int32 msg, IntPtr wparam, IntPtr lparam) > >      at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef > hWnd, Int32 msg, Int32 wParam, Int32 lParam) > >      at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, > Int32 lparam) > >      at System.Windows.Forms.Form.Close() > >      at WeifenLuo.WinFormsUI.DockPane.CloseContent(DockContent content) > >      at WeifenLuo.WinFormsUI.HiddenMdiChild.WndProc(Message& m) > >      at > System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) > >      at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& > m) > >      at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, > Int32 msg, IntPtr wparam, IntPtr lparam) > >      at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef > hWnd, Int32 msg, Int32 wParam, Int32 lParam) > >      at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, > Int32 lparam) > >      at System.Windows.Forms.Form.Close() > >      at WeifenLuo.WinFormsUI.DockContent.Dispose(Boolean disposing) > >      at Ghost.frmBaseForm.Dispose(Boolean disposing) in D:\NET > Projecten\Code Source Sodimex - > Ghost\Sodimex\GUI\frmBaseForm.Designer.vb:line 11 > >      at Ghost.frmEntreprises.Dispose(Boolean disposing) in D:\NET > Projecten\Code Source Sodimex - > Ghost\Sodimex\GUI\frmEntreprises.Designer.vb:line 11 > >      at Ghost.frmFournisseurs.Dispose(Boolean disposing) in D:\NET > Projecten\Code Source Sodimex - > Ghost\Sodimex\GUI\frmFournisseurs.Designer.vb:line 11 > >      at System.ComponentModel.Component.Dispose() > >      at System.Windows.Forms.Form.WmClose(Message& m) > >      at System.Windows.Forms.Form.WndProc(Message& m) > >      at > System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) > >      at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& > m) > >      at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, > Int32 msg, IntPtr wparam, IntPtr lparam) > >      at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef > hWnd, Int32 msg, Int32 wParam, Int32 lParam) > >      at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, > Int32 lparam) > >      at System.Windows.Forms.Form.Close() > >      at WeifenLuo.WinFormsUI.DockPane.CloseContent(DockContent content) > >      at WeifenLuo.WinFormsUI.HiddenMdiChild.WndProc(Message& m) > >      at > System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) > >      at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& > m) > >      at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, > Int32 msg, IntPtr wparam, IntPtr lparam) > >      at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef > hWnd, Int32 msg, Int32 wParam, Int32 lParam) > >      at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, > Int32 lparam) > >      at System.Windows.Forms.Form.Close() > >      at WeifenLuo.WinFormsUI.DockContent.Dispose(Boolean disposing) > >      at Ghost.frmBaseForm.Dispose(Boolean disposing) in D:\NET > Projecten\Code Source Sodimex - > Ghost\Sodimex\GUI\frmBaseForm.Designer.vb:line 11 > >      at Ghost.frmEntreprises.Dispose(Boolean disposing) in D:\NET > Projecten\Code Source Sodimex - > Ghost\Sodimex\GUI\frmEntreprises.Designer.vb:line 11 > >      at Ghost.frmFournisseurs.Dispose(Boolean disposing) in D:\NET > Projecten\Code Source Sodimex - > Ghost\Sodimex\GUI\frmFournisseurs.Designer.vb:line 11 > >      at System.ComponentModel.Component.Dispose() > >      at System.Windows.Forms.Form.WmClose(Message& m) > >      at System.Windows.Forms.Form.WndProc(Message& m) > >      at > System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) > >      at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& > m) > >      at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, > Int32 msg, IntPtr wparam, IntPtr lparam) > >      at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef > hWnd, Int32 msg, Int32 wParam, Int32 lParam) > >      at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, > Int32 lparam) > >      at System.Windows.Forms.Form.Close() > >      at WeifenLuo.WinFormsUI.DockPane.CloseContent(DockContent content) > >      at WeifenLuo.WinFormsUI.HiddenMdiChild.WndProc(Message& m) > >      at > System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) > >      at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& > m) > >      at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, > Int32 msg, IntPtr wparam, IntPtr lparam) > >      at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef > hWnd, Int32 msg, Int32 wParam, Int32 lParam) > >      at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, > Int32 lparam) > >      at System.Windows.Forms.Form.Close() > >      at WeifenLuo.WinFormsUI.DockContent.Dispose(Boolean disposing) > >      at Ghost.frmBaseForm.Dispose(Boolean disposing) in D:\NET > Projecten\Code Source Sodimex - > Ghost\Sodimex\GUI\frmBaseForm.Designer.vb:line 11 > >      at Ghost.frmEntreprises.Dispose(Boolean disposing) in D:\NET > Projecten\Code Source Sodimex - > Ghost\Sodimex\GUI\frmEntreprises.Designer.vb:line 11 > >      at Ghost.frmFournisseurs.Dispose(Boolean disposing) in D:\NET > Projecten\Code Source Sodimex - > Ghost\Sodimex\GUI\frmFournisseurs.Designer.vb:line 11 > >      at System.ComponentModel.Component.Dispose() > >      at System.Windows.Forms.Form.WmClose(Message& m) > >      at System.Windows.Forms.Form.WndProc(Message& m) > >      at > System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) > >      at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& > m) > >      at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, > Int32 msg, IntPtr wparam, IntPtr lparam) > >      at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef > hWnd, Int32 msg, Int32 wParam, Int32 lParam) > >      at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, > Int32 lparam) > >      at System.Windows.Forms.Form.Close() > >      at WeifenLuo.WinFormsUI.DockPane.CloseContent(DockContent content) > >      at WeifenLuo.WinFormsUI.HiddenMdiChild.WndProc(Message& m) > >      at > System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) > >      at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& > m) > >      at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, > Int32 msg, IntPtr wparam, IntPtr lparam) > >      at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef > hWnd, Int32 msg, Int32 wParam, Int32 lParam) > >      at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, > Int32 lparam) > >      at System.Windows.Forms.Form.Close() > >      at WeifenLuo.WinFormsUI.DockContent.Dispose(Boolean disposing) > >      at Ghost.frmBaseForm.Dispose(Boolean disposing) in D:\NET > Projecten\Code Source Sodimex - > Ghost\Sodimex\GUI\frmBaseForm.Designer.vb:line 11 > >      at Ghost.frmEntreprises.Dispose(Boolean disposing) in D:\NET > Projecten\Code Source Sodimex - > Ghost\Sodimex\GUI\frmEntreprises.Designer.vb:line 11 > >      at Ghost.frmFournisseurs.Dispose(Boolean disposing) in D:\NET > Projecten\Code Source Sodimex - > Ghost\Sodimex\GUI\frmFournisseurs.Designer.vb:line 11 > >      at System.ComponentModel.Component.Dispose() > >      at System.Windows.Forms.Form.WmClose(Message& m) > >      at System.Windows.Forms.Form.WndProc(Message& m) > >      at > System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) > >      at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& > m) > >      at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, > Int32 msg, IntPtr wparam, IntPtr lparam) > >      at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef > hWnd, Int32 msg, Int32 wParam, Int32 lParam) > >      at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, > Int32 lparam) > >      at System.Windows.Forms.Form.Close() > >      at WeifenLuo.WinFormsUI.DockPane.CloseContent(DockContent content) > >      at WeifenLuo.WinFormsUI.HiddenMdiChild.WndProc(Message& m) > >      at > System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) > >      at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& > m) > >      at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, > Int32 msg, IntPtr wparam, IntPtr lparam) > >      at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef > hWnd, Int32 msg, Int32 wParam, Int32 lParam) > >      at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, > Int32 lparam) > >      at System.Windows.Forms.Form.Close() > >      at WeifenLuo.WinFormsUI.DockContent.Dispose(Boolean disposing) > >      at Ghost.frmBaseForm.Dispose(Boolean disposing) in D:\NET > Projecten\Code Source Sodimex - > Ghost\Sodimex\GUI\frmBaseForm.Designer.vb:line 11 > >      at Ghost.frmEntreprises.Dispose(Boolean disposing) in D:\NET > Projecten\Code Source Sodimex - > Ghost\Sodimex\GUI\frmEntreprises.Designer.vb:line 11 > >      at Ghost.frmFournisseurs.Dispose(Boolean disposing) in D:\NET > Projecten\Code Source Sodimex - > Ghost\Sodimex\GUI\frmFournisseurs.Designer.vb:line 11 > >      at System.ComponentModel.Component.Dispose() > >      at System.Windows.Forms.Form.WmClose(Message& m) > >      at System.Windows.Forms.Form.WndProc(Message& m) > >      at > System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) > >      at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& > m) > >      at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, > Int32 msg, IntPtr wparam, IntPtr lparam) > >      at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef > hWnd, Int32 msg, Int32 wParam, Int32 lParam) > >      at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, > Int32 lparam) > >      at System.Windows.Forms.Form.Close() > >      at WeifenLuo.WinFormsUI.DockPane.CloseContent(DockContent content) > >      at WeifenLuo.WinFormsUI.HiddenMdiChild.WndProc(Message& m) > >      at > System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) > >      at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& > m) > >      at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, > Int32 msg, IntPtr wparam, IntPtr lparam) > >      at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef > hWnd, Int32 msg, Int32 wParam, Int32 lParam) > >      at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, > Int32 lparam) > >      at System.Windows.Forms.Form.Close() > >      at WeifenLuo.WinFormsUI.DockContent.Dispose(Boolean disposing) > >      at Ghost.frmBaseForm.Dispose(Boolean disposing) in D:\NET > Projecten\Code Source Sodimex - > Ghost\Sodimex\GUI\frmBaseForm.Designer.vb:line 11 > >      at Ghost.frmEntreprises.Dispose(Boolean disposing) in D:\NET > Projecten\Code Source Sodimex - > Ghost\Sodimex\GUI\frmEntreprises.Designer.vb:line 11 > >      at Ghost.frmFournisseurs.Dispose(Boolean disposing) in D:\NET > Projecten\Code Source Sodimex - > Ghost\Sodimex\GUI\frmFournisseurs.Designer.vb:line 11 > >      at System.ComponentModel.Component.Dispose() > >      at System.Windows.Forms.Form.WmClose(Message& m) > >      at System.Windows.Forms.Form.WndProc(Message& m) > >      at > System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) > >      at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& > m) > >      at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, > Int32 msg, IntPtr wparam, IntPtr lparam) > >      at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef > hWnd, Int32 msg, Int32 wParam, Int32 lParam) > >      at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, > Int32 lparam) > >      at System.Windows.Forms.Form.Close() > >      at WeifenLuo.WinFormsUI.DockPane.CloseContent(DockContent content) > >      at WeifenLuo.WinFormsUI.HiddenMdiChild.WndProc(Message& m) > >      at > System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) > >      at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& > m) > >      at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, > Int32 msg, IntPtr wparam, IntPtr lparam) > >      at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef > hWnd, Int32 msg, Int32 wParam, Int32 lParam) > >      at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, > Int32 lparam) > >      at System.Windows.Forms.Form.Close() > >      at WeifenLuo.WinFormsUI.DockContent.Dispose(Boolean disposing) > >      at Ghost.frmBaseForm.Dispose(Boolean disposing) in D:\NET > Projecten\Code Source Sodimex - > Ghost\Sodimex\GUI\frmBaseForm.Designer.vb:line 11 > >      at Ghost.frmEntreprises.Dispose(Boolean disposing) in D:\NET > Projecten\Code Source Sodimex - > Ghost\Sodimex\GUI\frmEntreprises.Designer.vb:line 11 > >      at Ghost.frmFournisseurs.Dispose(Boolean disposing) in D:\NET > Projecten\Code Source Sodimex - > Ghost\Sodimex\GUI\frmFournisseurs.Designer.vb:line 11 > >      at System.ComponentModel.Component.Dispose() > >      at System.Windows.Forms.Form.WmClose(Message& m) > >      at System.Windows.Forms.Form.WndProc(Message& m) > >      at > System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) > >      at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& > m) > >      at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, > Int32 msg, IntPtr wparam, IntPtr lparam) > >      at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef > hWnd, Int32 msg, Int32 wParam, Int32 lParam) > >      at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, > Int32 lparam) > >      at System.Windows.Forms.Form.Close() > >      at WeifenLuo.WinFormsUI.DockPane.CloseContent(DockContent content) > >      at WeifenLuo.WinFormsUI.HiddenMdiChild.WndProc(Message& m) > >      at > System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) > >      at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& > m) > >      at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, > Int32 msg, IntPtr wparam, IntPtr lparam) > >      at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef > hWnd, Int32 msg, Int32 wParam, Int32 lParam) > >      at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, > Int32 lparam) > >      at System.Windows.Forms.Form.Close() > >      at WeifenLuo.WinFormsUI.DockContent.Dispose(Boolean disposing) > >      at Ghost.frmBaseForm.Dispose(Boolean disposing) in D:\NET > Projecten\Code Source Sodimex - > Ghost\Sodimex\GUI\frmBaseForm.Designer.vb:line 11 > >      at Ghost.frmEntreprises.Dispose(Boolean disposing) in D:\NET > Projecten\Code Source Sodimex - > Ghost\Sodimex\GUI\frmEntreprises.Designer.vb:line 11 > >      at Ghost.frmFournisseurs.Dispose(Boolean disposing) in D:\NET > Projecten\Code Source Sodimex - > Ghost\Sodimex\GUI\frmFournisseurs.Designer.vb:line 11 > >      at System.ComponentModel.Component.Dispose() > >      at System.Windows.Forms.Form.WmClose(Message& m) > >      at System.Windows.Forms.Form.WndProc(Message& m) > >      at > System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) > >      at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& > m) > >      at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, > Int32 msg, IntPtr wparam, IntPtr lparam) > >      at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef > hWnd, Int32 msg, Int32 wParam, Int32 lParam) > >      at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, > Int32 lparam) > >      at System.Windows.Forms.Form.Close() > >      at WeifenLuo.WinFormsUI.DockPane.CloseContent(DockContent content) > >      at WeifenLuo.WinFormsUI.HiddenMdiChild.WndProc(Message& m) > >      at > System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) > >      at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& > m) > >      at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, > Int32 msg, IntPtr wparam, IntPtr lparam) > >      at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef > hWnd, Int32 msg, Int32 wParam, Int32 lParam) > >      at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, > Int32 lparam) > >      at System.Windows.Forms.Form.Close() > >      at WeifenLuo.WinFormsUI.DockContent.Dispose(Boolean disposing) > >      at Ghost.frmBaseForm.Dispose(Boolean disposing) in D:\NET > Projecten\Code Source Sodimex - > Ghost\Sodimex\GUI\frmBaseForm.Designer.vb:line 11 > >      at Ghost.frmEntreprises.Dispose(Boolean disposing) in D:\NET > Projecten\Code Source Sodimex - > Ghost\Sodimex\GUI\frmEntreprises.Designer.vb:line 11 > >      at Ghost.frmFournisseurs.Dispose(Boolean disposing) in D:\NET > Projecten\Code Source Sodimex - > Ghost\Sodimex\GUI\frmFournisseurs.Designer.vb:line 11 > >      at System.ComponentModel.Component.Dispose() > >      at System.Windows.Forms.Form.WmClose(Message& m) > >      at System.Windows.Forms.Form.WndProc(Message& m) > >      at > System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) > >      at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& > m) > >      at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, > Int32 msg, IntPtr wparam, IntPtr lparam) > >      at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef > hWnd, Int32 msg, Int32 wParam, Int32 lParam) > >      at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, > Int32 lparam) > >      at System.Windows.Forms.Form.Close() > >      at WeifenLuo.WinFormsUI.DockPane.CloseContent(DockContent content) > >      at WeifenLuo.WinFormsUI.HiddenMdiChild.WndProc(Message& m) > >      at > System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) > >      at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& > m) > >      at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, > Int32 msg, IntPtr wparam, IntPtr lparam) > >      at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef > hWnd, Int32 msg, Int32 wParam, Int32 lParam) > >      at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, > Int32 lparam) > >      at System.Windows.Forms.Form.Close() > >      at WeifenLuo.WinFormsUI.DockContent.Dispose(Boolean disposing) > >      at Ghost.frmBaseForm.Dispose(Boolean disposing) in D:\NET > Projecten\Code Source Sodimex - > Ghost\Sodimex\GUI\frmBaseForm.Designer.vb:line 11 > >      at Ghost.frmEntreprises.Dispose(Boolean disposing) in D:\NET > Projecten\Code Source Sodimex - > Ghost\Sodimex\GUI\frmEntreprises.Designer.vb:line 11 > >      at Ghost.frmFournisseurs.Dispose(Boolean disposing) in D:\NET > Projecten\Code Source Sodimex - > Ghost\Sodimex\GUI\frmFournisseurs.Designer.vb:line 11 > >      at System.ComponentModel.Component.Dispose() > >      at System.Windows.Forms.Form.WmClose(Message& m) > >      at System.Windows.Forms.Form.WndProc(Message& m) > >      at > System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) > >      at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& > m) > >      at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, > Int32 msg, IntPtr wparam, IntPtr lparam) > >      at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef > hWnd, Int32 msg, Int32 wParam, Int32 lParam) > >      at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, > Int32 lparam) > >      at System.Windows.Forms.Form.Close() > >      at WeifenLuo.WinFormsUI.DockPane.CloseContent(DockContent content) > >      at WeifenLuo.WinFormsUI.DockPane.CloseActiveContent() > >      at WeifenLuo.WinFormsUI.DockPaneStripVS2003.Close_Click(Object > sender, EventArgs e) > >      at System.Windows.Forms.Control.OnClick(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.Control.ControlNativeWindow.OnMessage(Message& m) > >      at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& > m) > >      at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, > Int32 msg, IntPtr wparam, IntPtr lparam) > >      at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& > msg) > >      at > System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 > dwComponentID, Int32 reason, Int32 pvLoopData) > >      at > System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 > reason, ApplicationContext context) > >      at > System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 > reason, ApplicationContext context) > >      at System.Windows.Forms.Application.Run(ApplicationContext context) > >      at > Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun() > >      at > Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel() > >      at > Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] > commandLine) > >      at Ghost.My.MyApplication.Main(String[] Args) in > 17d14f5c-a337-4978-8281-53493378c1071.vb:line 76 > >      at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] > args) > >      at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence > assemblySecurity, String[] args) > >      at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() > >      at System.Threading.ThreadHelper.ThreadStart_Context(Object state) > >      at System.Threading.ExecutionContext.Run(ExecutionContext > executionContext, ContextCallback callback, Object state) > >      at System.Threading.ThreadHelper.ThreadStart() > > > In Q324653 (http://support.microsoft.com/?id=324653) you'll find some code to
write an exception handler... Maybe you could inherit from the Dockcontent control and override the Close (or something like that) and put a try catch around MyBase.Close. Kind regards Thanks. But this works only when using the executable file. When running the
solution from Visual Studio it doesn't work :-/ Show quote "kHSw" <khsw.be(at)gmail.com> wrote in message news:47632D44-CEE6-4D3E-B2F8-6385A9F5F4C0@microsoft.com... > In Q324653 (http://support.microsoft.com/?id=324653) you'll find some code > to > write an exception handler... > > Maybe you could inherit from the Dockcontent control and override the > Close > (or something like that) and put a try catch around MyBase.Close. > > > Kind regards > Then you probably should go for inheritance...
Show quote "DraguVaso" wrote: > Thanks. But this works only when using the executable file. When running the > solution from Visual Studio it doesn't work :-/ > > "kHSw" <khsw.be(at)gmail.com> wrote in message > news:47632D44-CEE6-4D3E-B2F8-6385A9F5F4C0@microsoft.com... > > In Q324653 (http://support.microsoft.com/?id=324653) you'll find some code > > to > > write an exception handler... > > > > Maybe you could inherit from the Dockcontent control and override the > > Close > > (or something like that) and put a try catch around MyBase.Close. > > > > > > Kind regards > > > > > Hi,            Are you overriding wndproc and not calling mybase.wndproc(m). You will get that error if you are not. Protected Overrides Sub WndProc(ByRef m As System.Windows.Forms.Message)        Const WM_DRAWCLIPBOARD As Integer = &H308        If m.Msg = WM_DRAWCLIPBOARD Then            RaiseEvent DataRecieved()        End If        MyBase.WndProc(m)    End Sub Ken ------------------------------ Show quote "DraguVaso" <pietercou***@hotmail.com> wrote in message news:%23pXd3yvzFHA.720@TK2MSFTNGP15.phx.gbl... > Hi, > > In my application, on some given actions while debugging in Visual Studio, > I suddenly get a "System.ComponentModel.Win32Exception was unhandled" > Message="Error creating window handle." exception. > > The problem is that this exception isn't raised somewhere in a method, so > it just shows up, and it causes the application to shut down. > > Is there anyway how to catch this kinds of exceptions? Can I put somewhere > a general exception handler that will catch this kind of exceptions in my > application? > > Thanks a lot in advance, any help our hints will be really appreciated! > > Pieter > > > For those who would like some more info: I'm using Visual Studio 2.0 Beta > 2, VB.NET, and it happens while closing a Dockcontent of the WeifenLuo > DockPanel Suite). > > This is the whole exception: > > System.ComponentModel.Win32Exception was unhandled > Message="Error creating window handle." > Source="System.Windows.Forms" > ErrorCode=-2147467259 > NativeErrorCode=0 > StackTrace: >      at System.Windows.Forms.NativeWindow.CreateHandle(CreateParams cp) > >      at System.Windows.Forms.Control.CreateHandle() > >      at System.Windows.Forms.Control.RecreateHandleCore() > >      at System.Windows.Forms.ComboBox.RecreateHandleCore() > >      at System.Windows.Forms.ComboBox.OnFontChanged(EventArgs e) > >      at System.Windows.Forms.Control.OnParentFontChanged(EventArgs e) > >      at System.Windows.Forms.Control.OnFontChanged(EventArgs e) > >      at System.Windows.Forms.Control.OnParentFontChanged(EventArgs e) > >      at System.Windows.Forms.Control.OnFontChanged(EventArgs e) > >      at System.Windows.Forms.ContainerControl.OnFontChanged(EventArgs e) > >      at System.Windows.Forms.Form.OnFontChanged(EventArgs e) > >      at System.Windows.Forms.Control.AssignParent(Control value) > >      at System.Windows.Forms.Form.AssignParent(Control value) > >      at System.Windows.Forms.Control.ControlCollection.Remove(Control > value) > >      at System.Windows.Forms.Control.set_ParentInternal(Control value) > >      at System.Windows.Forms.Form.set_ParentInternal(Control value) > >      at System.Windows.Forms.Control.set_Parent(Control value) > >      at WeifenLuo.WinFormsUI.DockContent.SetParent(Control value) > >      at WeifenLuo.WinFormsUI.DockPane.RemoveContent(DockContent content) > >      at WeifenLuo.WinFormsUI.DockContent.set_PanelPane(DockPane value) > >      at WeifenLuo.WinFormsUI.DockContent.set_Pane(DockPane value) > >      at WeifenLuo.WinFormsUI.DockContent.set_DockPanel(DockPanel value) > >      at WeifenLuo.WinFormsUI.DockContent.Dispose(Boolean disposing) > >      at Ghost.frmBaseForm.Dispose(Boolean disposing) in D:\NET > Projecten\Code Source Sodimex - > Ghost\Sodimex\GUI\frmBaseForm.Designer.vb:line 11 > >      at Ghost.frmEntreprises.Dispose(Boolean disposing) in D:\NET > Projecten\Code Source Sodimex - > Ghost\Sodimex\GUI\frmEntreprises.Designer.vb:line 11 > >      at Ghost.frmFournisseurs.Dispose(Boolean disposing) in D:\NET > Projecten\Code Source Sodimex - > Ghost\Sodimex\GUI\frmFournisseurs.Designer.vb:line 11 > >      at System.ComponentModel.Component.Dispose() > >      at System.Windows.Forms.Form.WmClose(Message& m) > >      at System.Windows.Forms.Form.WndProc(Message& m) > >      at > System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) > >      at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& > m) > >      at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, > Int32 msg, IntPtr wparam, IntPtr lparam) > >      at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef > hWnd, Int32 msg, Int32 wParam, Int32 lParam) > >      at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, > Int32 lparam) > >      at System.Windows.Forms.Form.Close() > >      at WeifenLuo.WinFormsUI.DockPane.CloseContent(DockContent content) > >      at WeifenLuo.WinFormsUI.HiddenMdiChild.WndProc(Message& m) > >      at > System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) > >      at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& > m) > >      at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, > Int32 msg, IntPtr wparam, IntPtr lparam) > >      at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef > hWnd, Int32 msg, Int32 wParam, Int32 lParam) > >      at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, > Int32 lparam) > >      at System.Windows.Forms.Form.Close() > >      at WeifenLuo.WinFormsUI.DockContent.Dispose(Boolean disposing) > >      at Ghost.frmBaseForm.Dispose(Boolean disposing) in D:\NET > Projecten\Code Source Sodimex - > Ghost\Sodimex\GUI\frmBaseForm.Designer.vb:line 11 > >      at Ghost.frmEntreprises.Dispose(Boolean disposing) in D:\NET > Projecten\Code Source Sodimex - > Ghost\Sodimex\GUI\frmEntreprises.Designer.vb:line 11 > >      at Ghost.frmFournisseurs.Dispose(Boolean disposing) in D:\NET > Projecten\Code Source Sodimex - > Ghost\Sodimex\GUI\frmFournisseurs.Designer.vb:line 11 > >      at System.ComponentModel.Component.Dispose() > >      at System.Windows.Forms.Form.WmClose(Message& m) > >      at System.Windows.Forms.Form.WndProc(Message& m) > >      at > System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) > >      at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& > m) > >      at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, > Int32 msg, IntPtr wparam, IntPtr lparam) > >      at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef > hWnd, Int32 msg, Int32 wParam, Int32 lParam) > >      at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, > Int32 lparam) > >      at System.Windows.Forms.Form.Close() > >      at WeifenLuo.WinFormsUI.DockPane.CloseContent(DockContent content) > >      at WeifenLuo.WinFormsUI.HiddenMdiChild.WndProc(Message& m) > >      at > System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) > >      at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& > m) > >      at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, > Int32 msg, IntPtr wparam, IntPtr lparam) > >      at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef > hWnd, Int32 msg, Int32 wParam, Int32 lParam) > >      at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, > Int32 lparam) > >      at System.Windows.Forms.Form.Close() > >      at WeifenLuo.WinFormsUI.DockContent.Dispose(Boolean disposing) > >      at Ghost.frmBaseForm.Dispose(Boolean disposing) in D:\NET > Projecten\Code Source Sodimex - > Ghost\Sodimex\GUI\frmBaseForm.Designer.vb:line 11 > >      at Ghost.frmEntreprises.Dispose(Boolean disposing) in D:\NET > Projecten\Code Source Sodimex - > Ghost\Sodimex\GUI\frmEntreprises.Designer.vb:line 11 > >      at Ghost.frmFournisseurs.Dispose(Boolean disposing) in D:\NET > Projecten\Code Source Sodimex - > Ghost\Sodimex\GUI\frmFournisseurs.Designer.vb:line 11 > >      at System.ComponentModel.Component.Dispose() > >      at System.Windows.Forms.Form.WmClose(Message& m) > >      at System.Windows.Forms.Form.WndProc(Message& m) > >      at > System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) > >      at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& > m) > >      at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, > Int32 msg, IntPtr wparam, IntPtr lparam) > >      at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef > hWnd, Int32 msg, Int32 wParam, Int32 lParam) > >      at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, > Int32 lparam) > >      at System.Windows.Forms.Form.Close() > >      at WeifenLuo.WinFormsUI.DockPane.CloseContent(DockContent content) > >      at WeifenLuo.WinFormsUI.HiddenMdiChild.WndProc(Message& m) > >      at > System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) > >      at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& > m) > >      at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, > Int32 msg, IntPtr wparam, IntPtr lparam) > >      at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef > hWnd, Int32 msg, Int32 wParam, Int32 lParam) > >      at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, > Int32 lparam) > >      at System.Windows.Forms.Form.Close() > >      at WeifenLuo.WinFormsUI.DockContent.Dispose(Boolean disposing) > >      at Ghost.frmBaseForm.Dispose(Boolean disposing) in D:\NET > Projecten\Code Source Sodimex - > Ghost\Sodimex\GUI\frmBaseForm.Designer.vb:line 11 > >      at Ghost.frmEntreprises.Dispose(Boolean disposing) in D:\NET > Projecten\Code Source Sodimex - > Ghost\Sodimex\GUI\frmEntreprises.Designer.vb:line 11 > >      at Ghost.frmFournisseurs.Dispose(Boolean disposing) in D:\NET > Projecten\Code Source Sodimex - > Ghost\Sodimex\GUI\frmFournisseurs.Designer.vb:line 11 > >      at System.ComponentModel.Component.Dispose() > >      at System.Windows.Forms.Form.WmClose(Message& m) > >      at System.Windows.Forms.Form.WndProc(Message& m) > >      at > System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) > >      at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& > m) > >      at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, > Int32 msg, IntPtr wparam, IntPtr lparam) > >      at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef > hWnd, Int32 msg, Int32 wParam, Int32 lParam) > >      at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, > Int32 lparam) > >      at System.Windows.Forms.Form.Close() > >      at WeifenLuo.WinFormsUI.DockPane.CloseContent(DockContent content) > >      at WeifenLuo.WinFormsUI.HiddenMdiChild.WndProc(Message& m) > >      at > System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) > >      at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& > m) > >      at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, > Int32 msg, IntPtr wparam, IntPtr lparam) > >      at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef > hWnd, Int32 msg, Int32 wParam, Int32 lParam) > >      at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, > Int32 lparam) > >      at System.Windows.Forms.Form.Close() > >      at WeifenLuo.WinFormsUI.DockContent.Dispose(Boolean disposing) > >      at Ghost.frmBaseForm.Dispose(Boolean disposing) in D:\NET > Projecten\Code Source Sodimex - > Ghost\Sodimex\GUI\frmBaseForm.Designer.vb:line 11 > >      at Ghost.frmEntreprises.Dispose(Boolean disposing) in D:\NET > Projecten\Code Source Sodimex - > Ghost\Sodimex\GUI\frmEntreprises.Designer.vb:line 11 > >      at Ghost.frmFournisseurs.Dispose(Boolean disposing) in D:\NET > Projecten\Code Source Sodimex - > Ghost\Sodimex\GUI\frmFournisseurs.Designer.vb:line 11 > >      at System.ComponentModel.Component.Dispose() > >      at System.Windows.Forms.Form.WmClose(Message& m) > >      at System.Windows.Forms.Form.WndProc(Message& m) > >      at > System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) > >  | |||||||||||||||||||||||