Dispose and CreateHandle

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!
 

Ask a Question

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

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

Ask a Question

Top