Posted: Wed Apr 19, 2006 4:34 pm
i use "Find and Discover" to connect my application (i have advertised service already). when i click the device name, noramlly the service discovery will start, but there is a message "ConnectionFailed: Failed to find services on the device due to a connection error"
i would like to ask y it happened and what is the meaning of "connection error"
RE: Connection Failed
Posted: Mon Apr 24, 2006 12:24 pm
Does it happen all the time? Or was it just that one time?
That kind of error I would assume is because the Bluetooth stack has crashed or something. If your application locked up for example it is very likely that you didn't dispose of the BlueTools manager for example. That can lead to the kind of behaviour you describe. All you can really do is try to prevent any dead-locks and always dispose of the Manager properly on shutdown. The problem should go away with a simple restart.