Tim Murison wrote:

                [pool release];
        }
}


With GC, the memory use grows forever, without GC, it doesn't grow at all.

With GC, [pool release] is a no-op.  You should use [pool drain].

Quoted from NSAutoreleasePool Class Reference, under the description for -drain:

- - - -
Special Considerations
In a garbage-collected environment, release is a no-op, so unless you do not want to give the collector a hint it is important to use drain in any code that may be compiled for a garbage-collected environment.

- - - -


  -- GG

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to