Distributed objects in Panther
Distributed objects in Panther
- Subject: Distributed objects in Panther
- From: "Peter Sichel" <email@hidden>
- Date: Mon, 4 Aug 2003 22:07:42 -0400
I'm using Distributed Objects to communicate between threads in my application
and have encountered some incompatible behavior in Panther. Specifically I
create a thread following the SimpleThreads example and then call it to
perform an asynchronous operation like this:
- (oneway void)startService:(NSString *)inURL fromController:(id)controller;
[myServer start
Service:someURL fromController:self];
When my thread wants to communicate results back to the controlling
thread, it calls back using the controller object (DO proxy) that
was passed in like this:
- (oneway void)receiveNotification:(NSNotification *)aNotification;
[controller receiveNotification:aNotification];
This has worked well for over two years but now crashes in Panther.
The main thread crashes before control reaches the receiveNotification
method.
MY QUESTIONS:
Am I doing something ambiguous or poorly specified by sending
a message to the controller object that was passed in?
Should I be passing the controller object explicitly by reference?
- (oneway void)startService:(NSString *)inURL fromController:(id *)controller;
Any idea why this code suddenly stopped working in the Panther preview?
Thanks,
- Peter
_______________________________________________
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.