Details
-
Bug
-
Resolution: Done
-
Not Evaluated
-
1.2.1
-
Windows 7 64 bit. Nokia Qt SDK 1.1.4 (Qt 4.7.4 and Qt Mobility 1.2.1).
Device: Nokia N8, Symbian Anna 025.007
Description
I created a "hello world" application to test Bluetooth device discovery using QBluetoothDeviceDiscoveryAgent.
However, if I call the 'start()' method of that class with Bluetooth powered off, my app crashes and goes away. The debug console prints this:
[Qt Message] void QtMobility::BluetoothLinkManagerDeviceDiscoverer::setError(int) errorCode= -44
Thread has crashed: Thread 0x49c has panicked. Category: KERN-EXEC; Reason: 0
Thread has crashed: Thread 0x49d has panicked. Category: KERN-EXEC; Reason: 0
The problem does not occur if I turn on Bluetooth before, either manually or programatically (e.g. using QBluetoothLocalDevice and its method 'powerOn').