Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > FYI: Debugging memory problems

FYI: Debugging memory problems
Thread Tools
Mac Elite
Join Date: Sep 2000
Location: Tempe, AZ
Status: Offline
Reply With Quote
Mar 28, 2003, 09:53 PM
 
I just discovered this and thought I'd share the knowledge - if you've got a memory problem that sucks to debug, you may want to use Apple's built-in tools. If you're coding in Cocoa, check out NSDebug.h (I've known about this one for awhile).

What I didn't know is that there are some nice tools that turn on debugging in malloc/free. Check out
http://developer.apple.com/techpubs/...ocOptions.html for more info.

Basically, these tools will make your program more likely to crash immediately if there's a memory problem. This is a good thing, because often, memory problems will cause your code to crash, but it'll happen far from the actual problem area, making it a bitch+ to debug.
Geekspiff - generating spiffdiddlee software since before you began paying attention.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 03:17 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2