I'm trying to reproduce a Bluetooth application from the S60 Programming Tutorial Guide using the emulator. When the application discovers a bluetooth devices (and it discovered few) it hangs. If I try to exit the application (in emulator) I get Panic E32USER-CBase.
Here are the files for the active object responsible for BT devices discovery: CBTDeviceDiscovery.h and CBTDeviceDiscovery.cpp.
After a few devices are being discovered I get iStatus != KErrNone in CBTDeviceDiscovery::RunL() which I assume as a correct flow. I have also registered the object at CActiveScheduler::Add( this);
So I can discover a few devices but later I get Panic E32USER-CBase. Can someone give me a clue?
Another issue I have is the PANIC KERNEL 15 with iTimer (at this time commented out) - the iTimer was added by the carbide wizard so I'm not sure if it is necessary.