#: 8304 S3/Languages
18-Nov-90 18:05:10
Sb: #8233-#shell+
Fm: Mike Knudsen 72467,1111
To: Tom Napolitano 70215,1130 (X)
Malloc() will grab memory until there are no 8K bolcks left in your proc's 64K
space, yes. But first it will take whatever's left in the highest 8K block of
your original process allocation. Now here's the hooker: the way C's startup
routine works, and extra memory you give it on the command linea with #K (or
Shell+ gives it behind your back), that memory can only be used for extra STACK
space. [Read "any" for "and" above.] This memory is DEINIED to malloc(), which
always starts beyond your stack space. Thus shell+, by giving your program
extra stack space, causes malloc() to start off with that much LESS memory
available.
It all makes sense now, after Greg Law and Zack Sessions helped figure it out
on the low-priced service (sometimes cheaper is better, eh?). But it took 3-4
people to put all the pieces of evidence togehter. WHo says there's no science
in COmputer Science? --mike k
PS: MVCanvas might *not* be one of the programs affected, maybe I was wrong or
was thinking of the older version.
There is 1 Reply.
|