• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Maximum size of an NSMutableData object?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
References: 
 >Maximum size of an NSMutableData object? (From: Phill Kelley <email@hidden>)

  • Prev by Date: Re: Rookie question. Where did expection raised!?
  • Next by Date: __ape_agent crash?
  • Previous by thread: Maximum size of an NSMutableData object?
  • Next by thread: Re: Maximum size of an NSMutableData object?
  • Index(es):
    • Date
    • Thread