Re: Troubleshooting CFMessagePort

2011-01-06 Thread Dave Keck
>> Is there any utility to maybe probe the Mach ports that my app has open?  I >> can't find anything like that. > > top(1) and Activity Monitor can list the number of ports a process has > open, but I'm not aware of any utilities that go into any more detail. Oh, `sudo launchctl bstree` might al

Re: Troubleshooting CFMessagePort

2011-01-06 Thread Dave Keck
I don't see anything obviously wrong with your code after a cursory glance. I assume you're familiar with the bootstrap context issues mentioned in TN2083 and elsewhere? If you can post a complete example that exhibits the problem, I'd be happy to investigate further. However, consider using NSMac

Troubleshooting CFMessagePort

2011-01-06 Thread Jerry Krinock
I've been using CFMessagePort for interprocess communication for the last few weeks; made myself a couple little wrapper classes around CFMessagePortCreateLocal and CFMessagePortCreateRemote, implementing a "client" and "server". I create a server only when needed and destroy it when done. Typ