Windows Forms Throwing a system.OutOfMemoryException Additional information: Error creating window handle
Posted on 2006-05-23
I am having a problem that I haven't had before and I don't understand where it's comming from.
I have a child form called frmUse that has a button click event that calls objfrmPeople.show This was working fine until just recently while I have been attempting to seperate the DB access into a seperate tier. Now I am getting the error:
An unhandled exception of type 'System.OutOfMemoryException' occurred in system.windows.forms.dll
Additional information: Error creating window handle.
I am concerned that it may be somehow related to the Windows Forms Generated Code region since I was mucking around there while I was trying to set the form's databindings to a seperate tier. Below is the stack trace for the error. I will be happy to post code but don't know what to post yet any direction will be appreciated.
I traped the error to get the stack trace:
at System.Windows.Forms.NativeWindow.CreateHandle(CreateParams cp)
at System.Windows.Forms.Form.SetVisibleCore(Boolean value)
at System.Windows.Forms.Control.set_Visible(Boolean value)
at Foundation.frmUse.btnPeople_Click(Object sender, EventArgs e) in C:\Documents and Settings\Administrator.CHEYENNE\My Documents\Visual Studio Projects\Foundation\frmUse.vb:line 102