On Dec 10, 2009, at 11:55 PM, Parimal Das wrote:

> I must be missing something here.
> Can anyone point what is wrong here.

(1) there is no need for an autorelease pool in such a simple -awakeFromNib.  
It will be in the context of an autorelease pool to begin with and doesn't 
create enough memory load to warrant a nested pool.

(2) To determine why leaks says those two dictionaries are leaking, first find 
their content and then turn on malloc stack logging and figure out where they 
were allocated.

To do the first, break into gdb and -- obviously substituting the address that 
leaks reports -- 'po 0x13b9b0'.

That'll dump the contents of the dictionary.

If you set the environment MallocStackLoggingNoCompact to "YES", then you can 
do -- also in gdb -- 'info malloc 0x13b9b0' and see the allocation point of the 
object in question.

Or... alternatively... use Instruments as it can track leaks.

b.bum

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to