As saif before on the list, IOBlutooth is less than thread safe ! I'm afraid you have to make all your bluetooth stuffs in the AppKit thread (the main thread) Le 25 juil. 04, ` 23:01, Alf Watt a icrit :
I'm seeing a problem when calling IOBluetooth methods from separate
threads in my application. One thread periodically calls
[IOBluetoothDevice recentDevices] while the user interface has a
button which calls:
[[IOBluetoothDeviceSelectorController deviceSelector] runModal];
And the panel does not operate properly, the run log reports a message
from NSDistantObject:
2004-07-25 13:51:30.901 iStumbler[3415] NSDistantObject access
attempted from another thread
Clearly this is a threading issue; besides reorganizing my application
to only call the IOBluetooth APIs from a single thread is there
anything I can do to get my application working? Perhaps some
documentation on how to write threaded applications with Bluetooth
support?
Best,
Alf
_______________________________________________
bluetooth-dev mailing list | bluetooth-dev@lists.apple.com
Help/Unsubscribe/Archives:
Do not post admin requests to the list. They will be ignored.
-- Yann Bizeul - yann at tynsoe.org http://projects.tynsoe.org/ _______________________________________________ bluetooth-dev mailing list | bluetooth-dev@lists.apple.com Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/bluetooth-dev Do not post admin requests to the list. They will be ignored.