diff -r c8156a91d13c -r c54d95799c80 mpxplugins/serviceplugins/collectionplugins/mpxsqlitedbhgplugin/src/mpxdbplugin.cpp --- a/mpxplugins/serviceplugins/collectionplugins/mpxsqlitedbhgplugin/src/mpxdbplugin.cpp Wed Mar 31 21:26:33 2010 +0300 +++ b/mpxplugins/serviceplugins/collectionplugins/mpxsqlitedbhgplugin/src/mpxdbplugin.cpp Wed Apr 14 15:54:18 2010 +0300 @@ -338,9 +338,11 @@ break; } case EMcCmdClose: + // called before destructing this plug-in: no actions required + break; case EMcCloseCollection: { - MPX_DEBUG1("CMPXDbPlugin::CommandL - EMcCloseCollection"); + MPX_DEBUG2("CMPXDbPlugin::CommandL - EMcCloseCollection %d", aArg); // Close the specified database TRAP_IGNORE(iDbHandler->PreCloseCollectionL()); #ifdef RD_MULTIPLE_DRIVE @@ -362,12 +364,11 @@ } else { - iDbHandler->CloseDatabaseL(aArg); + TRAP_IGNORE( iDbHandler->CloseDatabaseL(aArg) ); //Closing can fail if physical media has been removed or forced disk dismount has occurred. } #else iDbHandler->CloseDatabaseL(aArg); #endif // RD_MULTIPLE_DRIVE - iDbHandler->CollectionClosed(); break; } case EMcReOpenCollection: @@ -397,7 +398,6 @@ #else iDbHandler->OpenDatabaseL(aArg); #endif // RD_MULTIPLE_DRIVE - TRAP_IGNORE(iDbHandler->CollectionOpenedL()); break; } case EMcRefreshStarted: @@ -788,7 +788,6 @@ CMPXMediaArray* array = CMPXMediaArray::NewL(); CleanupStack::PushL(array); - TInt count(0); TInt levels(aPath.Levels()); TBool isASong(EFalse);