The VB.Net application opens a child form as follows:
Private Sub OpenChildForm()
dim frm as new frmWhatever
frm.showdialog()
frm.dispose()
End Sub
I can open the child form several times without a problem. But at a
given moment I get an "Error creating window handle". The error occurs
at the 20th (or so) consecutive call of the OpenChildForm procedure.
I understand that Windows 9x has a limited number of handles, but since
I'm using Windows XP that shouldn't be the problem.
Reading the newsgroups I found out I'm not the only one having this
problem. Unfortunately, I haven't seen a solution either.
Any help would be appreciated.
It actually turned out to be a NullReferenceException in the form's
OnLoad, which for some unknown reason always gets converted to a
SystemOutOfMemory exception. I was also told that this behaviour is the
same for any exceptions occurring in the form's constructor.
So basicly, a control disappeared somewhere and cause the problem.
Pretty easy to fix, but a nightmare to identify.
</snip>
But who knows if that is the case :-)... Wish I could be of more help,
and please post if you do find an answer to your problem.
Best regards,
Hal