albertkhor
Well-known member
- Joined
- Jan 12, 2006
- Messages
- 150
- Programming Experience
- Beginner
Don Delegate said:Seems like you are hitting the windows handle limit?
Win2000 and higher have an (abritrary) limit of about 10 000 handles per process , if I recall correctly.
Are you running on Win98 perhaps? (limit is sometimes as low as two hundred handles).
[SIZE=1]
[/SIZE][SIZE=1][COLOR=#0000ff]Private[/COLOR][/SIZE][SIZE=1] [/SIZE][SIZE=1][COLOR=#0000ff]Sub[/COLOR][/SIZE][SIZE=1] ShowForm([/SIZE][SIZE=1][COLOR=#0000ff]ByVal[/COLOR][/SIZE][SIZE=1] form [/SIZE][SIZE=1][COLOR=#0000ff]As[/COLOR][/SIZE][SIZE=1] Form[/SIZE][SIZE=1])
[/SIZE][SIZE=1]form.ShowDialog() <---------- error
[/SIZE][SIZE=1][/SIZE][SIZE=1][COLOR=#0000ff]End[/COLOR][/SIZE][SIZE=1] [/SIZE][SIZE=1][COLOR=#0000ff]If
[/COLOR][/SIZE][SIZE=1][/SIZE][SIZE=1][COLOR=#0000ff]End[/COLOR][/SIZE][SIZE=1] [/SIZE][SIZE=1][COLOR=#0000ff]Sub
[/COLOR][/SIZE]
Don Delegate said:So far for the hWnd limit.
Is this an MDI form?
Are you sure the form reference is still valid?
Where is this form created?
Do you "reuse" the form, or the form variable?
Where exactly is this code executed? From an eventhandler in another form? From another thread?