From time to time, my Bluetooth library will stop connecting to a particular
device. My library is in Managed C++ and uses the Microsoft Bluetooth stack
for PC.
The only way to start connecting again is to remove the entry from the list
in the "Devices" tab of the "Bluetooth Devices" dialog. Once removed, the
library can connect again.
The problems seems to originate with the connect method in that it would
return 0xffffffff and the GetLastErrorMessage returned would be "An invalid
argument was supplied". I don't think I'm passing in anything incorrect as
that same code will work once I remove the device from the list as previously
mentioned.
|