Re: multithreading, cocoa, pools and POSIX
Re: multithreading, cocoa, pools and POSIX
- Subject: Re: multithreading, cocoa, pools and POSIX
- From: Philip George <email@hidden>
- Date: Tue, 7 Jun 2005 12:27:27 -0500
don't explicitly autorelease notif.
it's being asked to be released twice. no can do.
remove that line and you're golden.
- philip
On Jun 7, 2005, at 12:20 PM, Luc Vandal wrote:
Thanks!
Cocoa now seems to be in multithread mode. However, I still get a
crash on [pool release]:
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
BOOL b = [NSThread isMultiThreaded];
g_pFeedParam = pFeedParam;
NSNotification *notif = [NSNotification
notificationWithName:@"TextFeedCallback"
object:nil
userInfo:nil];
[[NSNotificationQueue defaultQueue] enqueueNotification:notif
postingStyle:NSPostNow];
[notif autorelease];
[pool release];
Am I doing something wrong?
Luc
On 7-Jun-05, at 12:40 PM, Philip George wrote:
[DeadThread enterMultiThreadedMode];
_______________________________________________
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
_______________________________________________
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