On May 31, 2012, at 8:29 AM, Nick Rogers wrote:

> Immediately after malloc'ing a node I'm using Garbage Collector method - 
> disableCollectorForPointer, just to make sure, although GC is supposed to 
> work only on objects, if I'm right.

You don't need to do this. GC only applies to Objective-C objects, not malloc 
or any other memory allocator.

> My question is: will GC affect the node allocations in anyway and, also (GC 
> or No GC) will the tree starting from a root node able to stay in memory 
> until I free it.

GC won't affect this. Nothing is going to make a malloc block go away other 
than your explicitly calling free() on it. Your crashes must be due to 
something else.

—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list ([email protected])

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

This email sent to [email protected]

Reply via email to