Mail Archives: djgpp/2001/02/26/09:16:26
Obviousely stack space is a problem. I've had problems with recursion
before in that it eats the stack pretty fast. I don't know if your algo's
are recursive or not without seeing code, but it's something to check.
-----Original Message-----
From: April [mailto:awhite AT user DOT rose DOT com]
Sent: Friday, February 23, 2001 9:27 PM
To: djgpp AT delorie DOT com
Subject: rsxntdj 1.5.1, djgpp 2.03: dll runs out of stack
Reading specs from c:/tools/gnu/rsxntdj/lib/specs
gcc driver version 2.95.2 19991024 (release) executing gcc version 2.8.1
GNU ld version 2.9.5 (with BFD 2.9.5)
I have been playing with a compression code someone else wrote. At work
I made the code into a dll using VC++, and got it to work from within a
visual basic 6 program. I would compress a 1.4MB bitmap. I forget the
output size, but I compressed a 20MB clipper/dbase .DBF to ~2MB
Well I have being dependant upon a MS product, so I've been trying to
get the dll to work with rsxntdj/djgpp. The code works - and the dll is
actually smaller than the VC version [8.5K vs 20K]
BUT
when I try to compress the same bitmap, I get an out of stack error in
VB. Smaller files compress okay, but not large!
I've tried setting a _stklen var to 4MB, to no avail. I tried the
pestack utility to increase the stack, again to no avail.
I know this will never replace wiz/winzip, but it is an interesting
learning process.
Does anyone have any suggestions?
Thanks.
- Raw text -