Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with MDIchild
Message
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00396987
Message ID:
00397010
Views:
13
>I am working on an app which uses a main MDICform for its display called "frmMain".
>One MDIchild was made at design time called "frmChild".
>
>When frmMain loads, I create an array of frmChild to load 10 new instances of the form. The forms each hold some of the Windows common control (2 sliders, some labels, etc.)
>
>When close my frmMain (MDIform) without loading any children into it, it closes fine; however, if I load the 10 children then attempt to close the MDIform my application gets an illegal operation.
>
>"Illegal Operation has occurredd. MyEXE has caused an invalid page fault in kernel32.dll"
>
>I have tried unloaded the array of the MDIchild forms, setting any class objects I created at run-time to nothing, and still no results on how to fix this error. So far, I have only been able to pin-point it on the MDIChild forms, as this error does not occur until I load at least MDIchild form.

Can you build a small example that we can try?
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform