Re: Crash while getting the NSColor components
Re: Crash while getting the NSColor components
- Subject: Re: Crash while getting the NSColor components
- From: Uli Kusterer <email@hidden>
- Date: Wed, 21 Jun 2006 20:35:52 +0200
Am 21.06.2006 um 08:32 schrieb Vinay Prabhu:
If the crash is because of missing retain, it should crash in both the
cases...
"should" and "missing retain" are two words used together only at
the speaker's own peril... Memory bugs are *by nature* not
necessarily reproducible, and zombie objects will often keep working
even though they have already been disposed of. There's no telling
what will happen once you've used released memory.
If you're interested in a more concrete example, my C tutorial (in
progress) on my web site goes into a little more detail on how memory
bugs work:
http://www.zathras.de/angelweb/masters-of-the-void-book6.htm
To understand that, you may also be interested in reading my article
on memory management:
http://www.zathras.de/angelweb/howmemorymanagementworks.htm
which is also linked at the top of the tutorial chapter.
Cheers,
-- M. Uli Kusterer
http://www.zathras.de
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden