David Wetzel wrote:
Marc Brünink wrote:

today I discovered a memory leak in one of our frameworks. I searched till I went mad, but didn't find anything.
Has anyone a suggestion how to track this one down?


Try something like:

  NSLog(@"session dealloc DebugAllocation\n%s", GSDebugAllocationList(NO));

and your will see how many objects you have alive.

Wow. This one is cool. Deep inside I knew GNUstep would have something like this :-) Great.
Did not find the bug yet, but this one will surely help. Thanks.
If anyone want to try this at home :-) you should call
GSDebugAllocationActive(YES);
too. Just mentioned for completeness.
Do we have a "HowTo debug", yet?

Marc




_______________________________________________
Discuss-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/discuss-gnustep

Reply via email to