Error creating window handle

G

Guest

Using: VB.Net, Framework 1.1, Windows XP SP2
Hardware: Pentium IV 3,1 GHz, 1 Gb RAM memory


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.
 
P

Patrice

Looks for work fine with an empty form. Could it be something inside the
form that is not properly disposed ?

Patrice
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top