• 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: Declaring large (but not that large) array causes crash?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Declaring large (but not that large) array causes crash?


  • Subject: Re: Declaring large (but not that large) array causes crash?
  • From: David Remahl <email@hidden>
  • Date: Mon, 22 Sep 2003 21:40:09 +0200

The default stack size is just 512 KB.

This post: <http://cocoa.mamasam.com/COCOADEV/2001/12/2/20851.php> offers a few hints.

/ Rgds, David
On 2003-09-22, at 21.08, John Scalo wrote:

Sorry, this isn't Cocoa-related per se, but it is crashing my Cocoa program
:-(

Declaring an array with a lot of items always causes a crash.

int main (int argc, const char * argv[]) {
unsigned long notSoBigArray[200000];
return 0;
}

That's only about 780K. Why the crash?
_______________________________________________
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: 
 >Declaring large (but not that large) array causes crash? (From: John Scalo <email@hidden>)

  • Prev by Date: Re: Declaring large (but not that large) array causes crash?
  • Next by Date: NSString and writeToFile
  • Previous by thread: Re: Declaring large (but not that large) array causes crash?
  • Next by thread: Callbacks and autorelease pools
  • Index(es):
    • Date
    • Thread