Re: thread insanity...
Re: thread insanity...
- Subject: Re: thread insanity...
- From: Nick Zitzmann <email@hidden>
- Date: Mon, 27 Mar 2006 15:23:56 -0700
On Mar 26, 2006, at 3:14 AM, John Draper wrote:
2006-03-25 15:52:33.340 newSipTestApp[1760] *** _NSAutoreleaseNoPool
(): Object 0xb722e10 of class NSConcreteData autoreleased with no
pool in place - just leaking
2006-03-25 15:52:33.341 newSipTestApp[1760] *** _NSAutoreleaseNoPool
(): Object 0x8224c00 of class NSConcreteData autoreleased with no
pool in place - just leaking
2006-03-25 15:52:33.341 newSipTestApp[1760] *** _NSAutoreleaseNoPool
(): Object 0xb722d20 of class NSConcreteMutableData autoreleased
with no pool in place - just leaking
2006-03-25 15:52:33.341 newSipTestApp[1760] *** _NSAutoreleaseNoPool
(): Object 0xb722c60 of class NSIdEnumerator autoreleased with no
pool in place - just leaking
Actually, you get these with NSThread as well. It simply means you
need to create an NSAutoreleasePool before you make any other ObjC
calls, and then release it when it is no longer needed.
Ok, now how would I do this? Can someone be kind enough to pass me
a snippit if
code which can do this? Where would be a good place to do this? In the
awakeFromNIB method?
IIRC, you can force Cocoa to enter multi-threaded mode without
creating any new threads simply by calling [NSThread
detachNewThreadSelector:NULL toTarget:nil withObject:nil] and you
should probably call it before creating the first pthread.
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden