Re: Garbage collection leak in simple Core Data application

2008-11-28 Thread Mathieu Coursolle
Hi, Here is the result from gc-roots for a window controller that was not collected: (gdb) info gc-roots 0x1048c10 Number of roots: 1 Root: 0 Kind: stack rc: 0 Address: 0xbfffee24 Frame level: 3 Symbol: unknown 1 Kind: object rc: 0 Address: 0x01047be0 Class: NSWindow

Re: Garbage collection leak in simple Core Data application

2008-11-28 Thread Bill Bumgarner
On Nov 28, 2008, at 8:49 AM, Mathieu Coursolle wrote: Here is the result from gc-roots for a window controller that was not collected: (gdb) info gc-roots 0x1048c10 Number of roots: 1 Root: 0 Kind: stack rc: 0 Address: 0xbfffee24 Frame level: 3 Symbol: unknown 1 Kind: object

Re: Garbage collection leak in simple Core Data application

2008-11-28 Thread Mathieu Coursolle
Hi, Thanks for your reply, Even if I create other windows and delete them after, the lost controllers seem to be lost forever. I tried to select menu items and it actually speeds up the collection of some, but some are still lost forever. I waited for a while, continued to create/close

Re: Garbage collection leak in simple Core Data application

2008-11-28 Thread Bill Bumgarner
On Nov 28, 2008, at 3:10 PM, Mathieu Coursolle wrote: Thanks for your reply, Even if I create other windows and delete them after, the lost controllers seem to be lost forever. I tried to select menu items and it actually speeds up the collection of some, but some are still lost forever. I

Garbage collection leak in simple Core Data application

2008-11-27 Thread Mathieu Coursolle
Hi Cocoa developers, I created a simple garbage collected Core Data application using the Xcode template. I did not change much except that I added an empty window controller for my window, which is the file's owner of my .xib. I added logs in the init and finalize methods to make sure

Re: Garbage collection leak in simple Core Data application

2008-11-27 Thread Rob Keniger
On 28/11/2008, at 7:13 AM, Mathieu Coursolle wrote: Hi Cocoa developers, I created a simple garbage collected Core Data application using the Xcode template. I did not change much except that I added an empty window controller for my window, which is the file's owner of my .xib. I added

Re: Garbage collection leak in simple Core Data application

2008-11-27 Thread Bill Bumgarner
On Nov 28, 2008, at 8:42 AM, Rob Keniger wrote: You are adding the NSWindowController to your document using - addWindowController:, which retains the window controller. You must then release the window controller using -removeWindowController: so that the collector frees the object. Do