Real Tough One...Extreme Power users view only....

Digs
07-21-2003, 03:18 AM
I have an Vb6.0 SP5 application that runs on Win 2000 (SP4) that took me two years to finish from weekends only.

When I double click on the shortcut on my desktop to run it I get this Windows error message, and the application does not run...this also goes for double clicking the EXE itself as well. But the application does run when I load into to Vb6.0 and it runs by hitting F5 ok.

Message ..."ABC.exe has generated errors and will be closed by windows.You will need to restart the program. A error log is being created."

I go the the Windows 2000 error log "Event viewer" and there is no error logged.

I am about to format my c:\ drive and reinstall everything, because I think the issue is in the windows registry.

I have done a "regedit" and the path names to the exe are all fine.

Any idea, cause its stumped me big time !

My code starts withe standard Sub main() routine with no fancy code in there.

Cheers :confused:

JordanChris
07-21-2003, 04:52 AM
Put MSGBOX displays into the program to identify which line it is failing on.

It is unlikely to be before the first line (if it is, then re-install might help).

If it is after the first line, then debugging of your application is required.

Boris
07-21-2003, 05:07 AM
VB progs don't usually create such errors, since they don't (allways)
for example use all the "dangerous" features like copymemory and
that sort of stuff... Anyways, try to run the prog on another windows, for example 98 or 95. Also, you might want to update
your service pack, just in case that is the problem. I case you dont get it to work on 98 or 95 either, its your software that
perhaps has errors in it, but since vb runs it ok, it might be that vb has compiled the exe wrong (i wonder how that could happen) :confused: Still, i dont think you need to format your C: yet.. thats the last ultimate thing to do, but well, i have done it over 5 times already :D

CBUK2K
07-21-2003, 07:10 AM
Have u concidered it may be a hardware problem i had somthing similar with Sage Instant Accounting and it turned out to be due to faulty system memory. Does it work if you run it from the run prompt? A windows re install sounds like a good start.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum