Results 1 to 3 of 3

Thread: Need help, getting wacky error.

  1. #1

    Thread Starter
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464

    Need help, getting wacky error.

    Here is the error I am getting:
    An unhandled exception of type 'System.OutOfMemoryException' occurred in system.windows.forms.dll

    Additional information: Error creating window handle.
    Ok, so I would think the system is out of memory or something. No, not it. I can open the other forms in the project. So now I think it has to do with the code some how in the form. I commented everything except the code needed to create the form in th Designer region.

    Here is how I am creating the form:
    Code:
            Dim frmApprovalsSummary As New ApprovalsSummary
            frmApprovalsSummary.MdiParent = Me.MdiParent
            frmApprovalsSummary.Show()
    Has anyone come accross this issue yet? What did you do to fix it.

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    This happened to me once but I forgot what I did to fix it. I either removed it from the project and added it again or something. So there is nothing in the form's constructor?

    The samething happened to me while making a control because I had a method in an event that fired before I wanted it to thus causing an error during creation.

  3. #3

    Thread Starter
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    I figured it out. For some damn reason, you can't make your checkboxes.checked property = true in the form load. That was where it was choking at. I took those out of the load and it worked.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width