Instruments can't find simple leaks?
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