insufficientMemorySpecifiedError


#define insufficientMemorySpecifiedError() error("Insufficient memory for this image")

Why:
If the calculated oops memory size is greater than the available heap size then we issue this message and quit

Responsibility:
When the image starts up it has an idea of how much free memory there is, this can real or virtual memory, usually the virtual memory is limited to 512MB or 1GB by some VM option which is platform dependent. However in the case where the image is running as a embedded thread inside of some other application like a browser then memory could be limited to say a value of 30MB.

MacIntosh
os-9/OSXCarbon
#define insufficientMemorySpecifiedError() plugInNotifyUser("The amount of memory specified by the 'memory' EMBED tag is not enough for the installed Squeak image file.")
This logic was created to handle the case when a Squeak image was launched as a plugin in a browser. In that case it would be using the EMBED tag as a way of indicating how much memory to use. Later we would mmap 512mb, and in 2007 we migrated to launching a headless application and passing UI/screen updates between processes.

We use notification services to signal the problem then Squeak terminates.

Cocoa:
See iPhone

iPhone
#define insufficientMemorySpecifiedError() plugInNotifyUser("The amount of memory specified by the Setting Slider is not enough for the installed Squeak image file.")
Not implemented yet
Unix

Windows

BUGS
Need to review this for the macintosh, the message is invalid, but still could be issued.
There are no comments on this page.
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki