Home > Archive > Visual Basic > May 2004 > VB6 EXE Crashes on WIN 98
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
VB6 EXE Crashes on WIN 98
|
|
|
| Hi All,
I have program in VB6 and complied into an exe and given it to a user to
install. She has a win 98 machine and every time she closes the program it
locks up windows and she needs to restart the PC. I have the same exe
running on other Win 98 machines and do not have any problmes.
I made a new exe and placed messages boxes in the unlaod event of the MDI
form so i could find where the program was having problems. This did not
work as all the code was executed fine and then crashed.
After the last message box the only code is
Exit Sub
Hell:
Unload Me
after that there is no more code to be executed. Then she gets a pauge fault
error from windows
Any ideas as to what can cause this problem on only one machine.
Thanks
James
| |
|
| Do not use Unload Me or End in the Unload event of a form, especially if it
is the last form to unload before closing the app. This will result in a
crash. It is stated on MS Knowledge Base somewhere, so if You want to know
more search there.
Yours friendly,
Hans Heezemans
www.iservi.com
"James" <jamesramsay@iinet.net.au> schreef in bericht
news:40bb168f$0$8120$5a62ac22@freenews.iinet.net.au...
> Hi All,
>
> I have program in VB6 and complied into an exe and given it to a user to
> install. She has a win 98 machine and every time she closes the program it
> locks up windows and she needs to restart the PC. I have the same exe
> running on other Win 98 machines and do not have any problmes.
>
> I made a new exe and placed messages boxes in the unlaod event of the MDI
> form so i could find where the program was having problems. This did not
> work as all the code was executed fine and then crashed.
>
> After the last message box the only code is
>
> Exit Sub
> Hell:
>
> Unload Me
>
> after that there is no more code to be executed. Then she gets a pauge
fault
> error from windows
>
> Any ideas as to what can cause this problem on only one machine.
>
> Thanks
>
> James
>
>
| |
| Jim Carlock 2004-05-31, 9:30 am |
| It sounds like a corrupt file on the hard drive. That's where
I'd start to look.
1) Ask yourself when did the problem show up ?
2) Ask yourself what was done immediately prior to the
initial viewing of the problem. I'm thinking there was a file
that was installed and the problem showed up after the
installation of that file. If you know what the file is that is
causing the problems, if the error message indicates a
particular file, check that file out and see if you can down-
load that particular file again. Let us know if this helps at
all.
A corrupt file is more commonly seen when downloading
the file. It can occur during a normal file copy process from
one hard disk to another hard disk or from a floppy to a
hard disk or from a CD to a hard disk.
Let us know if that helps at all or if you can preclude that
from being a problem.
--
Jim Carlock
http://www.microcosmotalk.com/
Post replies to the newsgroup.
"James" <jamesramsay@iinet.net.au> wrote in message
news:40bb168f$0$8120$5a62ac22@freenews.iinet.net.au...
Hi All,
I have program in VB6 and complied into an exe and given it to a user to
install. She has a win 98 machine and every time she closes the program it
locks up windows and she needs to restart the PC. I have the same exe
running on other Win 98 machines and do not have any problmes.
I made a new exe and placed messages boxes in the unlaod event of the MDI
form so i could find where the program was having problems. This did not
work as all the code was executed fine and then crashed.
After the last message box the only code is
Exit Sub
Hell:
Unload Me
after that there is no more code to be executed. Then she gets a pauge fault
error from windows
Any ideas as to what can cause this problem on only one machine.
Thanks
James
|
|
|
|
|