VB6.exe - Projects beyond a certain size may result in compiler cr
- From: "PyrTechDev" <PyrTechDev@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 10 Jun 2005 07:35:03 -0700
This is related to another thread, "vb6.exe crash while debugging" by Process
Patrol. I am starting a new thread to warn others about a possible barrier to
further expanding features in large legacy VB6 projects. It is also hoped
that others may share similar cases so that some common denominator may be
found. Then at least we may know the limits of VB6 as it is, and the
work-arounds, if any.
I am having the very same issue with VB6 SP6 as the above "vb6.exe crash"
post describes. The error occurs during (or following) a compile, whether
native or p-code, whether via the IDE or the "Make" of the Explorer shell.
There seems to be a "tipping point," described below, at which this strange
memory error appears:
vb6.exe - Application Error
The instruction at "0x77fcc8e1" referenced memory at "0x00000000". The
memory could not be "written".
The above is an actual error message. In other crashes the instruction
and/or memory locations are different, but otherwise the message is the same.
The error occurs in my latest projects, where additional source code has been
added, and the resulting executable is larger too.
The affected machine is a Dell Inspiron 9100 laptop with 1.8GHz Pentium 4
HT, 1 GB RAM (upgraded from 256 MB, in the hopes of fixing this problem), and
60GB HD. It is configured for dual boot, and the hard drive is partitioned
into 40GB (NTFS) and 20GB (FAT32) areas. The OS in the 40GB (which is the
boot partition) is XP Pro SP2. The OS in the 20GB is 2K Pro SP4. The XP Pro
runs with HT enabled; the 2K Pro runs without (and it shows the Uniprocessor
device driver in the Device Manager).
The largest project I can compile on this laptop is:
- 144 files (of types BAS, FRM, FRX, DSR, DSA, and DSX)
- 2.50 MB of source code (the above 144 files)
- 2652 KB of (native binary) compiled executable
(I am using ActiveReports 2 from Data Dynamics; they are the DSR, DSA, and
DSX files.)
My troubles begin with this project:
- 164 files (as above)
- 2.88 MB of source code
- 2900 KB of executable
NOTE: I *CAN* compile this 164-file project on two (generic) desktop PC's.
(They are my employer's; the laptop is mine.) Both have VB6 SP6. One runs XP
Pro SP2, the other 2K Pro SP4 (and both using NTFS). The big difference:
Neither uses a HyperThreading CPU, and both are using AMD Athlon CPU's (2.5+
GHz) and have 512 MB RAM.
I am passing this information on as a helpful guide to my fellow VB6'ers. So
far it seems to be related to the Intel Pentium 4 with HyperThreading. It may
be possibe that the dual-core CPUs coming to market may share this problem I
am having with my HT machine. Also in the above "vb6.exe crash" post and
replies, nobody mentioned having an HT CPU or multiple CPUs, so it too may be
a potential problem lurking under the hood for everyone.
.
- Follow-Ups:
- RE: VB6.exe - Projects beyond a certain size may result in compiler cr
- From: PyrTechDev
- Re: VB6.exe - Projects beyond a certain size may result in compiler cr
- From: Dick Grier
- Re: VB6.exe - Projects beyond a certain size may result in compiler cr
- From: Ken Halter
- RE: VB6.exe - Projects beyond a certain size may result in compiler cr
- Prev by Date: Re: Error 2147417848 - Method '~' of Object '~' failed.
- Next by Date: Re: VB6.exe - Projects beyond a certain size may result in compiler cr
- Previous by thread: Re: Error 2147417848 - Method '~' of Object '~' failed.
- Next by thread: Re: VB6.exe - Projects beyond a certain size may result in compiler cr
- Index(es):
Relevant Pages
|