Re: memory management (perhaps naive) question
Re: memory management (perhaps naive) question
- Subject: Re: memory management (perhaps naive) question
- From: Evan Schoenberg <email@hidden>
- Date: Mon, 8 Nov 2004 20:50:21 -0600
Apple's NSFontManager also has some leaks which caching can minimize
but not completely avoid.
On Nov 8, 2004, at 7:07 PM, The Karl Adam wrote:
I generally don't leak memory, but with leaks and the env variable
MallocStackLogging, I generally get an answer as to whose leak it is,
and so far Apple's NSURL* seems to be the culprit for any links I've
run into, but this is my mileage, yours may vary.
On Sat, 06 Nov 2004 15:38:46 -0700, Scott Ribe
<email@hidden> wrote:
ie, is it for sure if i see a leak using the above process, that the
leak is
something i'm causing and can fix within my code?
It's quite possible that AppKit and Foundation do some caching of
their own,
and it is really not possible for you to get an absolute answer. What
you
can do is perform the same action in your app multiple times to see
if the
memory use keeps going up each time, or if it plateaus--if the latter
then
it's a pretty good bet that the libraries are just caching some
things.
--
Scott Ribe
email@hidden
http://www.killerbytes.com/
(303) 665-7007 voice
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden