Re: Memory management
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/