On Mar 31, 2010, at 11:51, Ken Thomases wrote: > On Mar 31, 2010, at 1:35 PM, Laurent Daudelin wrote: > >> In any case, what would cause an application built with the debug >> configuration to not exhibit this bug at all while the same application >> built with the release configuration will crash randomly? > > Changes in the layout of code or the stack. In particular, if you have bugs > involving uninitialized variables or stack smashers, the behavior may change > if such layout changes. > > If you haven't already, run the static analyzer (Build and Analyze) on your > code. Also, turn on as many compiler warnings as are useful and fix them. > Note that some warnings require that optimizations be turned on to be > effective, because they rely on data-flow analysis and the like that's only > performed during optimization. > > Good luck, > Ken
Ken, Just an update. I ran the analyzer and it found out a variable that was not initialized but that I was using later to check for nil value. I did recompile with change and my app has been running for well over 2 hours now without a single crash. Thanks! -Laurent. -- Laurent Daudelin AIM/iChat/Skype:LaurentDaudelin http://nemesys.dyndns.org Logiciels Nemesys Software laurent.daude...@gmail.com Photo Gallery Store: http://laurentdaudelin.shutterbugstorefront.com/g/galleries_______________________________________________ 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