• 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: Crash while getting the NSColor components
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >RE: Crash while getting the NSColor components (From: Vinay Prabhu <email@hidden>)

  • Prev by Date: Re: Crash while getting the NSColor components
  • Next by Date: Imbedding unicode in strings
  • Previous by thread: Re: Crash while getting the NSColor components
  • Next by thread: NSImageView redraws
  • Index(es):
    • Date
    • Thread