Re: Use CFMessagePort in CFM app?
Re: Use CFMessagePort in CFM app?
- Subject: Re: Use CFMessagePort in CFM app?
- From: "Jan E. Schotsman" <email@hidden>
- Date: Tue, 13 Jul 2004 06:29:20 -0400
Hello Quinn,
In the meantime I had already solved the problem with some help from DTS.
I remember I didn't understand how to use CFBundleGetDataPointerForName in
this case.
Does it simply return a StringRef if name = kCFRunLoopDefaultMode?
I have found these message ports can be tricky. If you want to recreate a
port with the same name you must be careful to kill the original port
thoroughly lest you get a cached object back.
Even then creating a remote port connection may hand you a cached object.
It seems that sometimes CFSendMessageRequest retains but does not release
(I pass nil for the reply mode to indicate I don't expect a reply). I
suppose it autoreleases(?) but due to very heavy processing in my threads
the remote port may not have been released in time (?).
Jan
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.