ADC Home > Reference Library > Technical Q&As > Legacy Documents > Graphics & Imaging >
Not Recommended Document
Important: The information in this document is Not Recommended and should not be used for new development.
Current information on this Reference Library topic can be found here:
Technical Q&A QD18
Error -151 and NewGWorld
Q: I received an error code of -151 from
creating a very large off-screen bitmap. Does this mean not enough memory? If
so, can I count on it not to change in future versions of the system? It's not
listed as one of the possible errors in Inside Macintosh Volume VI.
A: The error -151 is
cTempMemErr, "failed to allocate memory for
temporary structures," or in other words, there wasn't enough temporary memory available for
NewGWorld returns this error after it receives a
TempNewHandle. This was inadvertently
left out of Inside Macintosh Volume VI but does appear in the MPW interface files. You can count on
this error code in future versions of system software.
See Inside Macintosh: Memory or the Memory Management chapter
of Inside Macintosh Volume VI for more information about temporary memory.
[Sep 15 1995]