• 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
Instruments can't find simple leaks?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Instruments can't find simple leaks?


  • Subject: Instruments can't find simple leaks?
  • From: "Sean McBride" <email@hidden>
  • Date: Wed, 31 Oct 2007 12:38:49 -0400
  • Organization: Rogue Research

Hi all,

So I created a very simple Cocoa test app (non-GC) that has just one
button which, when clicked, does the following:

{
	NSBeep();
	void* foo = malloc(1024*1024*10);
}

ie it leaks.  I run it in Instruments with both the 'ObjectAlloc' and
'leaks' instruments, and ObjectAlloc indeed jumps up each time I press
the button, and it never falls.  Looks like a leak.  _But_ the leaks
instrument shows nothing, not even if I click "Check for Leaks Now".

MallocDebug.app easily identifies the leak.  Why can't Xray?  Surely I
am doing something wrong?

(I also tried NewHandle(), NewPtr(), NSAllocateCollectable(), and
NSAllocateMemoryPages()- same problem.  And no, using MallocDebug.app is
not a solution because it does not support GC apps, and my real app is GC.)

Thanks,

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada

 _______________________________________________
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

  • Prev by Date: Re: gdb documentation is missing in Xcode 3.0
  • Next by Date: Debugger Restart?
  • Previous by thread: Bizarre stdarg error with Xcode 3.0
  • Next by thread: Debugger Restart?
  • Index(es):
    • Date
    • Thread