Re: Maximum size of an NSMutableData object?
Re: Maximum size of an NSMutableData object?
- Subject: Re: Maximum size of an NSMutableData object?
- From: Dietrich Epp <email@hidden>
- Date: Tue, 3 Dec 2002 18:57:22 -0800
On Tuesday, December 3, 2002, at 06:30 , Phill Kelley wrote:
Does anyone know whether one gigabyte (1073741824) is an absolute Mac OS
X-wide limit for the size of an NSMutableData object or if the limit is
dependent upon the amount of physical RAM I have installed?
To put the question another way, I have 512MB in my machine now but if I
doubled my physical RAM to 1GB, would the maximum size of an
NSMutableData
object become 2GB-1 bytes, or would it remain at 1GB-1 bytes?
It would remain.
Notice that the exception is in the NSConcreteMutableData class, not
'malloc'. But it *is* absurd to try and allocate such large contiguous
regions on a 32-bit system. Precisely what you intend to do with a
gigabyte of memory I do not wish to know, but either wait for the G5 and
OS 11 or cache data on disk.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.