Frank Heckenbach wrote:
CBFalconer wrote:
Grant Jacobs wrote:
jan.ruzicka@comcast.net wrote:
Jan-Ruzickas-Computer:~/Desktop/downloads/gpc-20041218/p/test
... snip ...
TEST systemtest.pas: *** malloc: vm_allocate(size=2147483648) failed (error code=3) *** malloc[452]: error: Can't allocate region *** malloc: vm_allocate(size=2147483648) failed (error code=3) *** malloc[452]: error: Can't allocate region
A bug in Mac OS X. Please report it to devbugs@apple.com.
Perhaps search Apple's XCode user mailing list - I seem to vaguely recall a discussion about a similar issue quite some time ago. Sorry I can't remember the details myself.
Why a bug? Any malloc system has the right to limit assignment size.
But then malloc must return NULL (which GPC will translate into a proper error message) instead of crashing or terminating the program.
Oh. Didn't realize the errors were internal to malloc. Unbelievably sloppy.