On 22, Dec, 2011, at 03:32 PM, Mike Abdullah wrote: > > On 22 Dec 2011, at 14:03, Martin Hewitson wrote: > >> >> On 22, Dec, 2011, at 02:39 PM, Mike Abdullah wrote: >> >>> Did you actually write this app to be dual-mode, or are you under the >>> impression that turning off garbage collection will magically fix things? >> >> To be honest, I wrote the app assuming garbage collection was off. I think >> it must have got turned on by mistake, perhaps during the move to Xcode 4. >> Not sure. >> >> I am under the impression (according to what others have written) that >> turning off garbage collection will stop the crashes in the garbage >> collection queue. I think this is a reported bug, but I didn't follow that >> thread very long. I just was surprised to find garbage collection on in the >> app, so I switched it off. This revealed the bug, which I'd like now to fix, >> of course. > > I see. Well, turning it off will certainly fix that particular crash. But it > doesn't surprise me at all that an app which has had the safety net of GC for > a while will have picked up some memory management errors. The static > analyzer may well find a lot of them. >
Thanks for all your advice. A combination of the zombies instrument and the static analyzer helped me track down all the bugs that had crept in while operating with the safety net of garbage collection. Martin ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Martin Hewitson Albert-Einstein-Institut Max-Planck-Institut fuer Gravitationsphysik und Universitaet Hannover Callinstr. 38, 30167 Hannover, Germany Tel: +49-511-762-17121, Fax: +49-511-762-5861 E-Mail: martin.hewit...@aei.mpg.de WWW: http://www.aei.mpg.de/~hewitson ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ _______________________________________________ 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