I'm building a Cocoa app to use as a front-end to an app on the SBC (long story, I'm insane.)
The first thing that the app does is to listen to Bonjour advertisements to find all of the servers on the network, and then opens Phidget Manager connections to each of them to find all of the devices on the network (I may end up with multiple SBCs; right now I'm testing with an SBC along with a LED controller plugged directly into another Mac).
My code calls CPhidgetManager_create multiple times in quick succession, with different handle pointers, and gets different handles back. However, I sometimes get extra attach callbacks, with the same module showing up as being attached to both managers. If I only open one manager at a time, I see the right thing (only the directly attached modules). I also checked the WebService dictionaries on each device, and they show the right things (only the directly attached devices). I considered reentrancy problems in my own code, but I have verified that the attach routine is being called too often, so it smells like a library issue.
Can you suggest anything I might be screwing up, or is the manager code not intended to work in this manner?
FWIW, I'm doing this on a two-core laptop, so I very well may be getting parallel execution.
Thanks in advance.