On Apr 17, 2010, at 12:39 PM, Alexander Bokovikov wrote: >> Most likely you started an NSThread without putting an autorelease pool in >> the thread’s main function, or you got a callback on some thread and are >> making Cocoa calls on it without wrapping your callback in an autorelease >> pool. > > Start NSThread even BEFORE main() ? Is it possible?
I mean the initial function the thread runs. Nothing to do with the function called ‘main()’ that starts your process. Autorelease pools are per-thread, so any thread that’s going to call Cocoa methods needs one. —Jens_______________________________________________ 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