Strange problem - VB5 crashing
Strange as it may sound, all of my forms have been unloaded.
The only form loaded in memory is MDIForm.
The only button being clicked is on the main form's toolBar.
At first I called the "unload Me" method to unload the form.
As the app started giving the error, i tried the "End" statement.
It seems to happen more when the user previously opens
a Crystal Report Preview window (and it was closed at the time
Just another VB strange goodie?
The app could fire the error, but VB SHOULD'T crash with stuff
>I faced a similar problem. In my case it was bad programming:
>I had a procedure (say P1) that was to display a message in a text box of
>a form (say F1). P1 would be called several times.
>What I did was to create a new F1 everytime I entered P1 and when I left I
>only hid the F1. So at the end of the program there were all these F1's
>that were still in memory.
>I fixed it by creating F1 outside of P1 and whenever I entered P1, I only
>"show"ed F1. While exiting the program I "unload"ed F1 and things just
>Bottom line: you might have some unloaded forms in your programs and
>if there are too many of them, that will certainly crash the program or it
>may not terminate the program completely.