• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Debugging hints
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Debugging hints


  • Subject: Re: Debugging hints
  • From: Martin Hewitson <email@hidden>
  • Date: Thu, 22 Dec 2011 18:10:11 +0100

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: email@hidden
WWW: http://www.aei.mpg.de/~hewitson
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~





_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

References: 
 >Debugging hints (From: Martin Hewitson <email@hidden>)
 >Re: Debugging hints (From: Mike Abdullah <email@hidden>)
 >Re: Debugging hints (From: Martin Hewitson <email@hidden>)
 >Re: Debugging hints (From: Mike Abdullah <email@hidden>)

  • Prev by Date: Re: NSString looses Umlaute
  • Next by Date: Re: No more warning about registered observers on dealloc with ARC?
  • Previous by thread: Re: Debugging hints
  • Next by thread: No more warning about registered observers on dealloc with ARC?
  • Index(es):
    • Date
    • Thread