Re: Multithreading Bundles
Re: Multithreading Bundles
- Subject: Re: Multithreading Bundles
- From: Mike Davis <email@hidden>
- Date: Sat, 22 Nov 2003 08:21:36 +0000
Don't load bundles outside of the main thread. Bad idea. You could use
a NSConnection from the thread to the main thread in order to load it
up.
dyld won't like re-entrant code.
On 22 Nov 2003, at 6:00 am, email@hidden wrote:
Subject: Multithreading Bundles
Date: Fri, 21 Nov 2003 20:32:25 -0600
From: "Josh Ferguson" <email@hidden>
To: <email@hidden>
I'm working in a multithreaded application and am getting crashes in
Panther that never occured in Jaguar. Basically, I'm dynamically
loading a bundle (the DiscRecording frameworks, specifically) in a
thread, then passing a pointer to that bundle into my main thread using
the [_imageController performSelectorOnMainThread:@selector(burnPath:)
withObject:arguments waitUntilDone:TRUE]. Arguments contains pointers
to the DiscRecording and DiscRecordingUI frameworks (as well as a
couple of NSStrings). When I go to get a class (DRFolder) out of the
bundle, in the main thread (using the [NSBundle classNamed:] method),
my app is crashing. I know multithreading is a touchy issue, but I'm
confounded because it USED to work in Jaguar! Anyone have any ideas
what's going on?
Thanks,
Josh Ferguson
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.