Antwan van Houdt
Antwan van Houdt

Reputation: 6991

Cocoa memory management, why does my app keep using more?

I made a xfire client for mac (called BlackFire -> http://www.macxfire.com) and it keeps using more and more ram over time, even when not doing that much.

I have run the app with instruments::leaks and it doesn't show any leaks at all (when it did i fixed them quickly). Somehow it still keeps using more ram, like it is supposed to or something idk. I have minimized the use of autoreleased objects and I have checked for any leaks using build & analyze with no results.

Upvotes: 1

Views: 245

Answers (2)

alesplin
alesplin

Reputation: 1322

Try building it with Garbage Collection enabled and see if it does the same thing.

If not, then you know you still have some leaks to find. If it does, time to look at caches/logs/etc and find out what's eating memory.

Upvotes: 0

bbum
bbum

Reputation: 162712

Get yourself back to Instruments and use Object Alloc to see what objects / allocations are increasing over time.

More likely than not, you have a cache or a log or the like that is simply growing over time... is never being truncated.

Upvotes: 6

Related Questions