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 > Simple question about memory leaks

Simple question about memory leaks
Thread Tools
Fresh-Faced Recruit
Join Date: Apr 2008
Status: Offline
Reply With Quote
Apr 6, 2008, 08:24 PM
 
Hi everyone, I am a Sophomore Computer Science student. I have been getting into application development on my new Mac. I understand that Obj-c has recently implemented Garbage collection which should prevent memory leaks. I have enabled it in the build flags for the project but when I run even just the simplest little cocoa app in Instruments, I get 100s of memory leaks reported. I don't know if I'm using Instruments wrong or if I have misconfigured Xcode or if I just plain don't get something, but I can't find any info on google at all after a long search.

Here is a link to my xcode project (it just creates an interface with a button and some connections, nothing more!) http://www.ccs.neu.edu/~brysons/MemTest.dmg
     
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Apr 6, 2008, 11:44 PM
 
I believe the Leaks module is intended for manual memory management and doesn't work correctly with garbage collection.
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
azruial  (op)
Fresh-Faced Recruit
Join Date: Apr 2008
Status: Offline
Reply With Quote
Apr 6, 2008, 11:50 PM
 
Ahhh, that would be a major relief! So, as long as nothing looks fishy under the object allocation module, everything's shiny?
     
   
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 09:40 AM.
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