• 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: R: Running out of VM
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: R: Running out of VM


  • Subject: Re: R: Running out of VM
  • From: Alastair Houghton <email@hidden>
  • Date: Sun, 25 Dec 2005 22:42:57 +0000

On 25 Dec 2005, at 14:42, Jonathan del Strother wrote:

Use the debugging tools at your hands to try and determine the actual
cause of the problem? ;-)

Mmm, tricky when I can't reproduce it... :(

Are there any better ways to test potential low memory issues than artificially eating up memory with malloc?

There's an OpenFirmware variable you can use to limit the amount of memory available to the system (I don't remember the name, sorry... perhaps someone else can recall, but if not it should be easy enough to find by searching Apple's Developer site).

I have to say that like Finlay I'm also dubious that this really will turn out to be a low memory issue; it's possible, but I think there are probably more likely explanations. My guess, since you say that the program fails in random places, is that it's much more likely to be some sort of retain/release bug, as those can easily cause that type of behaviour and can be hard to reproduce. Try enabling some of the Cocoa debug options (see TN2124) and see if you can either reproduce the problem or find some other problems with your object allocation.

Kind regards,

Alastair.

--
http://www.alastairs-place.net


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
References: 
 >Re: R: Running out of VM (From: Markus Hitter <email@hidden>)
 >Re: R: Running out of VM (From: Alastair Houghton <email@hidden>)
 >Re: R: Running out of VM (From: Jonathan del Strother <email@hidden>)
 >Re: R: Running out of VM (From: Finlay Dobbie <email@hidden>)
 >Re: R: Running out of VM (From: Jonathan del Strother <email@hidden>)

  • Prev by Date: NeXT Pictures from WWDC
  • Next by Date: How do I access the Password Assistant dialog?
  • Previous by thread: Re: R: Running out of VM
  • Next by thread: Get all open files of one process
  • Index(es):
    • Date
    • Thread