Mail Archives: djgpp/1993/05/08/17:57:41
Hi.
My program failed when calling system(), and success or failing depends on how
much memory was allocated before system() called.
I can't tell how much dos memory was available since djgpp/gcc compiled program
seems to fool dos's mem command. System("mem") from inside of my program
didn't depend on the size of allocated data.(mem always said about 475KB free.)
My program(125KB .exe) loads image file(s) into memory. If a small image(16KB)
is loaded (I guess 460KB real memory free), system() worked well, but it failed
when a bigger image(64KB) is loaded (maybe 410KB dos memory free).
(dos free memory estimation might be incorrect because of go32 behavior ??)
Borland C required about 200KB free to execute system() call, but djgpp/gcc
seems to require much more than double. How can it be worse?
What is the solution to this? I.e. How can I give more dos free memory for
system() with djgpp/gcc??
Thanks for any help.
Regards,
Wonkoo Kim
EE, U. of Pittsburgh
wkim AT vms DOT cis DOT pitt DOT edu
- Raw text -