Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. OutOfMemoryException, Create handle failed!!!

OutOfMemoryException, Create handle failed!!!

Scheduled Pinned Locked Moved C#
helpquestion
6 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dealon
    wrote on last edited by
    #1

    Hello there. When i run my MDIChild style window the second time, it occured an error: OutOfMemoryExcpetion-Create handle failed.I don't known why, because some child windows can't occured this error. Code like below: dlg.MdiParent = this; dlg.Show(); The first time i run this code it work correctly, but when i run it again that error occured. Any help? Thanks in advance!

    If we dream, every thing is possible!

    G 1 Reply Last reply
    0
    • D dealon

      Hello there. When i run my MDIChild style window the second time, it occured an error: OutOfMemoryExcpetion-Create handle failed.I don't known why, because some child windows can't occured this error. Code like below: dlg.MdiParent = this; dlg.Show(); The first time i run this code it work correctly, but when i run it again that error occured. Any help? Thanks in advance!

      If we dream, every thing is possible!

      G Offline
      G Offline
      Gareth H
      wrote on last edited by
      #2

      dealon, Whats your program doing?, and what happens in the form you load?

      Regards, Gareth. (FKA gareth111)

      D 1 Reply Last reply
      0
      • G Gareth H

        dealon, Whats your program doing?, and what happens in the form you load?

        Regards, Gareth. (FKA gareth111)

        D Offline
        D Offline
        dealon
        wrote on last edited by
        #3

        Thanks Gareth. I want to show my one child window twice, and the first time it worked correctly, but then: dlg.Show(); at this code, it occured error "OutOfMemoryExcpetion" -Create handle failed. ps: my some other windows like it wouldn't show suck error. And this is a child window of one MDI window.I don't known why?

        If we dream, every thing is possible!

        G 1 Reply Last reply
        0
        • D dealon

          Thanks Gareth. I want to show my one child window twice, and the first time it worked correctly, but then: dlg.Show(); at this code, it occured error "OutOfMemoryExcpetion" -Create handle failed. ps: my some other windows like it wouldn't show suck error. And this is a child window of one MDI window.I don't known why?

          If we dream, every thing is possible!

          G Offline
          G Offline
          Gareth H
          wrote on last edited by
          #4

          dealon, Yes, i understand what you're trying to do. But, what happens in code when you load the form?, is it connecting to a database?, doing some graphics?, Do you create any large collections? what... You shouldn't get this error for just loading up a simple form, unless you have a billion forms open.

          Regards, Gareth. (FKA gareth111)

          D 2 Replies Last reply
          0
          • G Gareth H

            dealon, Yes, i understand what you're trying to do. But, what happens in code when you load the form?, is it connecting to a database?, doing some graphics?, Do you create any large collections? what... You shouldn't get this error for just loading up a simple form, unless you have a billion forms open.

            Regards, Gareth. (FKA gareth111)

            D Offline
            D Offline
            dealon
            wrote on last edited by
            #5

            Gareth, I think i need to get a new project to reproduce such problem because my original project has as many as 40 windows.Some work ok while others not.I don't known which code cause such errors and I will find out the codes exactly. Later, I will show you more information for the errors. Gareth,Thank you very much. Regards, Dealon.

            If we dream, every thing is possible!

            1 Reply Last reply
            0
            • G Gareth H

              dealon, Yes, i understand what you're trying to do. But, what happens in code when you load the form?, is it connecting to a database?, doing some graphics?, Do you create any large collections? what... You shouldn't get this error for just loading up a simple form, unless you have a billion forms open.

              Regards, Gareth. (FKA gareth111)

              D Offline
              D Offline
              dealon
              wrote on last edited by
              #6

              Gareth, I got it from the follow address: http://www.aboutmydot.net/index.php/unhandled-exception-win32exceptionerror-creating-window-handle[^] Thanks Gareth for your help. Regards, Dealon

              If we dream, every thing is possible!

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups