[comp.sys.mac.programmer] How do I get more storage

rcs91900@zach.fit.edu ( Charles Stockman /ADVISOR-Clutterham) (04/17/91)

I am working with MPW C++ version 3.1B1 and I keep on getting this error

     * free storage exhausted

How do I correct this ?????????????????????????

 

ksand@Apple.COM (Kent Sandvik, 120dB or more) (04/23/91)

In article <2296@winnie.fit.edu> rcs91900@zach.fit.edu Charles Stockman writes:
>I am working with MPW C++ version 3.1B1 and I keep on getting this error
>
>     * free storage exhausted
>
>How do I correct this ?????????????????????????

I think this the *most* asked MPW C++ question ever. Anyway, once and for
all, until the next case:

A) Use the -mf option that makes use of MultiFinder temp memory (-mf is
good for Link and Lib as well). In the case of MacApp, edit the default
settings in the Startup file inside the MacApp folder. Otherwise, edit
your Makefiles for this flag.

B) If that does not help, increase the MPW Shell app heap size until the
error disappears, or you are running out of memory. 4-5Mb is normal for 
C++/MacApp programming, which consists of semi-large source code compilations.

C) Don't use 3.1b1, that release is superseded by MPW 3.1 C++ final long time
ago, and many bugs are fixed.

E) If you have access to System 7, try running C++ with virtual memory;
it's slower than using the real thing, but it might help with low memory
configuration situations.

D) If all this does not help, contact AT&T and ask them why they design
software with the notion that every computer platform makes use of
virtual memory, so one could allocate large memory structures in the
middle of the parsing without worrying.


Regards,
Kent Sandvik


-- 
Kent Sandvik, DTS junkie