-
problem in unload a usercontrol
hi,
I don't know what mistake I have made, I have an error occurs in my
program when I tried to execute Unload myUserControl statement.
I create a usercontrol, and place it in a form with
index=0 and name=myUserControl
During run time, I create a control array of this usercontrol type,
and later in one of the subroutines I execute the statement unload
myUserControl(Index) where Index>0.
Suddenly the screen pops up a messagebox as below:
This program has performed an illegal operation and will be shut
down. If the problem persists, contact the program vendor.
Clicking on the Detail button on this messagebox, it shows:
Cause an invalid page fault in module <unknown> at 0141:a0000001....
I have to shut down the running program and the VB workspace.
Later I tried to step through it and found that after the execution
of the End Sub of the subroutine that contains the unload statement,
that messagebox appears. No way I can find the problem of my code
as I have to shut VB down.
Any one with this experience?
Hian Chew
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks