Distributed Objects/NSThreads/AppleEvents
Distributed Objects/NSThreads/AppleEvents
- Subject: Distributed Objects/NSThreads/AppleEvents
- From: Zameer Andani <email@hidden>
- Date: Wed, 12 Oct 2005 09:34:41 -0700
Hi there,
I am in the middle of debugging a Carbon library I have written that simply
sends apple events to an application, that supports Apple Events.
Every once in awhile, AESend hangs or crashes with an EXE_BAD_ACCESS message
both during a PerPort (not sure what this is) command (I have not been able
to find any documentation about calls OS X makes lower than AESend)
I have tested this carbon library from a single threaded Cocoa application
and I have never been able to reproduce this behavior. If however, I create
a thread (using distributed objects) off of my window controller and then
use the library off this thread, the problem appears.
I am wondering if perhaps the overhead of Distributed Objects or whether
switching between threads in the middle of a call in AESend somehow
invalidates the apple event mach port?
Anyone have any ideas on how else I could debug this problem?
Thanks
Zameer
_______________________________________________
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