RE: Multithreading Bundles
RE: Multithreading Bundles
- Subject: RE: Multithreading Bundles
- From: "Josh Ferguson" <email@hidden>
- Date: Sun, 23 Nov 2003 10:23:37 -0600
- Thread-topic: Multithreading Bundles
Mike,
I'm curious if you could provide a little more information on this. The
reason I'm loading it in the secondary thread is that it blocks the main
thread for 3 or 4 seconds while the framework loads. I have a progress bar on
the screen at that time that will freeze if that thread is blocked.
Considering that frameworks are supposed to be loaded in task space, I'm
surprised that this would be an issue.
Thanks,
Josh Ferguson
________________________________
From: Mike Davis [
mailto:email@hidden]
Sent: Sat 11/22/2003 2:21 AM
To: Josh Ferguson; email@hidden
Subject: Re: Multithreading Bundles
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.