• 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: Memory management
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Memory management


  • Subject: Re: Memory management
  • From: Markus Hitter <email@hidden>
  • Date: Tue, 17 Jul 2001 17:37:38 +0200

Am Dienstag, 17. Juli 2001 um 16:52 schrieb email@hidden:

When I send objects an autorelease message I get "bad access" errors and
warnings that deallocation might have occured --twice--.

Depends on which type of allocation you used.

Then I read that
applications based on the Appkit automatically create and destroy autorelease
pools.

You usually don't have to bither with this. Unless, for Example, you want to autorelease objects in a secondary thread.

Does this mean that they also automatically release objects?

Again, depends on how you created the objects.

Why am I
getting errors?

A code snippet would help a lot.

If you haven't done it yet, I'd suggest reading the articles about Memory allocation on http://www.stepwise.com/Articles/ .


Markus
- - - - - - - - - - - - - - - - - - -
Dipl. Ing. Markus Hitter
http://www.jump-ing.de/


References: 
 >Memory management (From: email@hidden)

  • Prev by Date: Memory management
  • Next by Date: Re: NSTimer and NSTableView
  • Previous by thread: Memory management
  • Next by thread: static libs in project builder
  • Index(es):
    • Date
    • Thread