• 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: Hard calculation crashes after 60Minutes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Hard calculation crashes after 60Minutes


  • Subject: Re: Hard calculation crashes after 60Minutes
  • From: Andrew Merenbach <email@hidden>
  • Date: Sat, 30 Aug 2008 20:44:45 -0700


On Aug 30, 2008, at 8:42 PM, Andrew Merenbach wrote:

On Aug 30, 2008, at 8:08 PM, Mr. Gecko wrote:

Hello I am making a program that does a really hard calculation and it seems to crash after 60 Minutes. I don't really know why it does, I am guessing it is because I am using a for loop that takes awhile to run (an estaminet of 120 MInutes every time it loops). so I was hoping someone will be able to help me fix it.
Here is the error I am getting.
cal(18129,0xa00c9074) malloc: *** mmap(size=16777216) failed (error code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
Trace/BPT trap


Note I have tried doing it on other machines and it still crashes.

Thanks for help and tips,
Mr. Gecko

Hi! It sounds as though you've run out of available memory. Is it possible that your program is not releasing allocated objects? If you're using autoreleased objects in the loop, does creating and destroying an autorelease pool each at run-through (or draining the pool, if you're using Garbage Collection under Leopard) alleviate the problem?


Cheers,
	Andrew


Erm, an addendum: I should've said "releasing allocated objects or memory" -- since it appears that part of the problem might be a malloc() call.

Best,
	Andrew

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Hard calculation crashes after 60Minutes
      • From: "Mr. Gecko" <email@hidden>
References: 
 >Hard calculation crashes after 60Minutes (From: "Mr. Gecko" <email@hidden>)
 >Re: Hard calculation crashes after 60Minutes (From: Andrew Merenbach <email@hidden>)

  • Prev by Date: Re: Hard calculation crashes after 60Minutes
  • Next by Date: NSOutlineView and checkbox cells for child items
  • Previous by thread: Re: Hard calculation crashes after 60Minutes
  • Next by thread: Re: Hard calculation crashes after 60Minutes
  • Index(es):
    • Date
    • Thread