Dispose and CreateHandle

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Smokey Grindel

    #1

    Dispose and CreateHandle

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

    Exception Information:
    System.InvalidO perationExcepti on: Value Dispose() cannot be called while
    doing CreateHandle().
    at System.Windows. Forms.Control.D ispose(Boolean disposing)
    at System.Windows. Forms.Form.Disp ose(Boolean disposing)
    at DevExpress.Xtra Editors.XtraFor m.Dispose(Boole an disposing)
    at Reschini.Projec tManagment.BaiV iewerForm.Dispo se(Boolean disposing) in
    D:\Development\ Bene\Trunk\Proj ect Managment\BView erForm.Designer .vb:line 11
    at System.Componen tModel.Componen t.Dispose()
    at System.Windows. Forms.Form.WmCl ose(Message& m)
    at System.Windows. Forms.Form.WndP roc(Message& m)
    at DevExpress.Xtra Editors.XtraFor m.WndProc(Messa ge& msg)
    at System.Windows. Forms.Control.C ontrolNativeWin dow.OnMessage(M essage& m)
    at System.Windows. Forms.Control.C ontrolNativeWin dow.WndProc(Mes sage& m)
    at System.Windows. Forms.NativeWin dow.Callback(In tPtr 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!

Working...