Problem with connection to Bluetooth device

Topics: Bluetooth - Microsoft
Jun 14, 2013 at 10:31 AM
Hello!
I have a problem with connection to our Bluetooth device.
1) when call BluetoothClient.Connect(), sometimes exception occures - "An invalid argument was supplied.", or another. But sometimes device connects (usually at first connection)!
2) when recieving data from device via background thread, may be situation, when the thread does not have time to take the data, and the device chokes, crashes and turns off.

Could you help me?
Or tell me, please, how to get COM port number of a Bluetooth device?
I want to work with COM without BluetoothClient.Connect().