OutOfMemoryException, Create handle failed!!!
-
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!
-
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!
-
dealon, Whats your program doing?, and what happens in the form you load?
Regards, Gareth. (FKA gareth111)
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!
-
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!
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)
-
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)
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!
-
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)