Re: Using MallocDebug from XCode - Can't find malloc info
Re: Using MallocDebug from XCode - Can't find malloc info
- Subject: Re: Using MallocDebug from XCode - Can't find malloc info
- From: Dave Payne <email@hidden>
- Date: Wed, 12 May 2004 20:22:43 -0700
On May 12, 2004, at 4:04 PM, Michael Brian Bentley wrote:
Trying to start MallocDebug from XCode on a Carbon app rewards us,
after a while, with the following message:
Read Data
Unable to read malloc information from
/Users/bentley/Projects/XYZ/Builds/XYZ.app
The alert also provides a cute picture of a section of pipe with a
hole in it, from which is pouring some water, indicating that the
error message is coming from MallocDebug.
This error message indicates that it should be able to find malloc
information in the bundle, but it isn't. What puts the malloc
information it needs in the bundle?
Do I have to be using Native targets to use MallocDebug? We had to
abandon native targets because we weren't able to build from scripts.
Hi Michael -- no, there shouldn't be any relationship between native
targets and MallocDebug. That "Unable to read malloc information"
alert means that the MallocDebug application is unable to connect with
the MallocDebug server thread that needs to be running in the target
process. To get that thread running, you need to have either launched
your application from MallocDebug, or have statically linked your app
with /usr/lib/libMallocDebug.a and do an Attach from MallocDebug.
From your message, it sounds like you used Xcode's "Launch Using
Performance Tool --> MallocDebug" menu item to launch your app; is
that correct? What happens if you try to open the
/Developer/Applications/Performance Tools/MallocDebug.app directly and
launch your app from there?
Also, what versions of Xcode and of Mac OS X are you using?
- Dave
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.