Re: Problem with VB crashing



"Martin" <martinvalley@xxxxxxxxxxx> wrote in message
news:m4f9l2dhq7lb83jjd2joe5gpkrlha26oee@xxxxxxxxxx
Can anyone give me a clue as to what I might need to be looking for
here?

Using VB6 (SP5) on Windows XP Pro with all current service packs and
updates.

I have more than 25 VB projects on this computer. With 3 of them, when
I shutdown VB, VB crashes (and displays the pop-up that says, "VB has
encountered a problem and needs to close..."). By "shutdown", I mean
that I click on the red "X" Close button in the upper right corner of
VB or I use the File|Exit menu.

These 3 programs all behave normally in every way. They load and run
in the editor without problems. They compile without any problem - and
the compiled exec's run normally.

To cause this crashing, all I need to do is load the program (either
by double-clicking on the .vpb file or by loading it from the
File|Open Project menu) and then close VB (as noted above).

I've checked the References and Components that are being used. As
near as I can tell, everything is installed and registered properly. I
cannot find anything that these 3 programs have in common that is not
in the other programs (although I'm going to continue looking).

I'm hoping that some here maybe has experienced a similar problem that
might help me diagnose this.

Help ?

All I can say is that I have that problem only if I run the app in the IDE.
It doesn't crash when I run the app, but if I later try to run it a second
time, or if I wait long enough coding afterwards, it will just go bye-bye.
I usually don't even get the notice, it just unloads itself, period.

I still also have the weird problem where I can only run reports generated
with Crystal if I'm running in the IDE, and cannot with the compiled version
of my app on my development machine. None of my end-users have the problem
at all. I've had that problem for years, and it means that if I want to
test a report, I have to run the app through the IDE and I have to remember
to manually end the program, otherwise it'll crash within the next few
minutes.


.