Symbian
Symbian OS Library

FAQ-1156 Why do I get a KErrInUse result if there is more than one SyncML controller running on a device?

[Index][spacer] [Previous] [Next]



 

Classification: C++ Category: Application Architecture
Created: 10/19/2004 Modified: 11/12/2004
Number: FAQ-1156
Platform: Symbian OS v6.1, Symbian OS v7.0

Question:
Why do I get a KErrInUse result if there is more than one SyncML controller running on a device?

Answer:
On Symbian OS v7.0-based devices any application that tries to instantiate a new CSmlController after the Remote Sync application has been run will fail. This is due to the fact that the controller in this component will have exclusive access to the smlController.dat file on the device.

    One workaround for this is to check if the Remote Sync app is active.Terminating this task will free access to the required file and allow a new controller to be constructed.