Dispose and CreateHandle

  • Thread starter Thread starter Smokey Grindel
  • Start date Start date
S

Smokey Grindel

I get this error every so often and very randomly...

Exception Information:
System.InvalidOperationException: Value Dispose() cannot be called while
doing CreateHandle().
at System.Windows.Forms.Control.Dispose(Boolean disposing)
at System.Windows.Forms.Form.Dispose(Boolean disposing)
at DevExpress.XtraEditors.XtraForm.Dispose(Boolean disposing)
at Reschini.ProjectManagment.BaiViewerForm.Dispose(Boolean disposing) in
D:\Development\Bene\Trunk\Project Managment\BViewerForm.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 DevExpress.XtraEditors.XtraForm.WndProc(Message& msg)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr
wparam, IntPtr lparam)

but its so random, twenty form loads and closes no problem, but then
randomly one time this happens... what would cause it? why would it be doing
a create handle when the form is closeing after its been open for oh say 10
seconds... no controls are being created on close or anything like that...
any ideas? thanks!
 
Back
Top