• 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: Seeking advice on debugging "real time" programs.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Seeking advice on debugging "real time" programs.


  • Subject: Re: Seeking advice on debugging "real time" programs.
  • From: David Dunham <email@hidden>
  • Date: Tue, 4 Apr 2006 13:00:17 -0700


On 4 Apr 2006, at 12:50, j o a r wrote:

Sure, set MallocStackLogging and then use leaks from the command line. (You'd set a breakpoint at a spot when you expect memory to be cleaned up -- in my case at the end of main().)

The "leaks" command line utility doesn't work like that. You can run it at any time, because it looks for references to _orphaned_ memory, not just any memory that hangs around when you're done executing. Of course, the longer you wait, the more orphaned memory you are likely to see if you have memory leaks, but usually they rear their ugly little heads much sooner than that.

I'm sure you're right, but in our app (with reference counting) I get a ton of false positives if I check at arbitrary times.


David Dunham   http://www.pensee.com/dunham/
Imagination is more important than knowledge. -- Albert Einstein

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

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

This email sent to email@hidden

  • Follow-Ups:
    • Re: Seeking advice on debugging "real time" programs.
      • From: j o a r <email@hidden>
References: 
 >Seeking advice on debugging "real time" programs. (From: John Draper <email@hidden>)
 >Re: Seeking advice on debugging "real time" programs. (From: David Dunham <email@hidden>)
 >Re: Seeking advice on debugging "real time" programs. (From: j o a r <email@hidden>)

  • Prev by Date: Re: Seeking advice on debugging "real time" programs.
  • Next by Date: Re: Seeking advice on debugging "real time" programs.
  • Previous by thread: Re: Seeking advice on debugging "real time" programs.
  • Next by thread: Re: Seeking advice on debugging "real time" programs.
  • Index(es):
    • Date
    • Thread