Hi,
thanks - ok, let's try it by C++ code. I've compiled the example app LocationLandmarksRefAppForS60 from N97 SDK v1.0. I've changed the code so that each time the application is starting the landmark database is initialized:
LandmarksEngine.cpp:
Code:
TBool CLandmarksEngine::StartInitializeDbIfNecessaryL(
MLandmarksOperationObserver* aObserver)
{
// if (iDb.IsInitializingNeeded())
if (ETrue)
{
// Create initialize operation
CPosLmOperation* operation = iDb.InitializeL();
iObserver = aObserver;
iActiveOperation = EInitializeDb;
iStatus = KRequestPending;
SetPriorityAndSetActive();
// Start asynchronous initialization
TBool reportProgress = ETrue;
iLmOpWrapper->StartOperation(operation, iStatus, reportProgress);
return ETrue;
}
else
{
return EFalse;
}
}
When I start the application I found that indeed the application is trying to initialize the database "Database initializing..." but the progress bar is then hanging at approx 99%. I've found in the application and in the library that
Code:
CPosLandmarkDatabase::InitializeL
is used for initializing, but this doesn't seem to work. Is there another way?
Thanks.
One addition: Also when I try to delete the complete default database by
Code:
CPosLmDatabasemanager::DeleteDatabaseL
it doesn't work - instead, I get the error message "already in use" also when no application is running on the N97.