[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Strange memory-related behavior (bug?)
From: |
Nicola Pero |
Subject: |
Re: Strange memory-related behavior (bug?) |
Date: |
Sun, 2 Sep 2001 18:46:45 +0100 (BST) |
Marko> I had some memory related bug I could not locate in my
Marko> code. (When changing NSObject dealloc to nop all
Marko> works). My intuition says multiple frees but I don't know
Marko> how this can happen with retain/release. Probably there is
Marko> memory corruption but hardly it is direct (I don't use c
Marko> library functions, only Foundation, never play directly
Marko> with pointers, never malloc, never use C arrays).
Marko> It is possible I use some autorelease incorrectly but how
Marko> can I locate my error (I have only 7k lines of code) ?
[NSObject enableDoubleReleaseCheck: YES];
might help you finding objects released too many times; functions from
NSDebug.h might help you finding objects not released enough times.