Re: VB6 crashes after writing exe
- From: "Hans" <hh@xxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 17 Jun 2005 19:42:14 +0200
I have had the similar experience. I do not know however the exact reason
why this phenomenon apppears. In my case it always went away after some
time. I assume this is due to code that runs OK in the IDE but causes the
VB.exe to crash after compiling and writing the exe.
Code that for some reason has a flaw that the compiler can not digest. The
best example I know of is using the END statement in a UNLOAD event,
assigning improper values to a variable or OCX property (a SINGLE to a LONG
or an INTEGER to a LONG) or the different behaviour of events in the IDE and
the exe file (especially interdependent LOSTFOCUS and GOTFOCUS events). The
best thing to do is look careful at Your code and see where it could be
improved or optimized. Change it and see if the crashing disappears.
Furthermore it is a good pratice to have a history af backups, so You can go
back to the point where the crashing did not appear.
Yours friendly,
Hans Heezemans/Iservi
www.iservi.com
"Bruno Köller" <mydevicenull@xxxxxxxxxxxxx> schreef in bericht
news:d8v0m4$tcd$1@xxxxxxxxxxxx
>I have a VB6 application carefully tested in the IDE and often compiled
>while expanding the source code step by step. Now VB crashes after
>compiling and writing the exe file.
>
> I know, of course, that nobody can tell me why. But maybe someone could
> give me a hint what could be the reason for it?
>
> It might not be a simple code error: I have tested over and over during
> code expanding, and the crash happens at compile and not at run time. I'm
> using Options Explicit, no subclassing, only some carefully checked and
> often tested API calls.
>
> Thnaks for each idea.
>
.
- References:
- VB6 crashes after writing exe
- From: Bruno Köller
- VB6 crashes after writing exe
- Prev by Date: Re: Microsoft WON
- Next by Date: Re: VB6 crashes after writing exe
- Previous by thread: VB6 crashes after writing exe
- Next by thread: Re: VB6 crashes after writing exe
- Index(es):
Relevant Pages
|