When I uesd CMdaAudioPlayerUtility::NewFilePlayerL(*iFileName,*this) to play a song, It's ok,
when I try to play another, sometimes I will get an error with MMFControllerProxyservere+somenumber ,and AllocLC:+somenumber, I know it means memory leak, but I don't know why.
Look at my codes when I play next song, it will run these codes.
if (iPlayerUtility)
{
iPlayerUtility->Stop(); //it's ok
iPlayerUtility->Close();
//sometime error occurs here, I tried to omit this, and the error
//come out in other place where i can't find, should be the system function
iPlayerUtility->OpenFileL(*iFileName);
}
else
{
iPlayerUtility = CMdaAudioPlayerUtility::NewFilePlayerL(*iFileName,*this);
}
I also try another way.Delete the object, renew.There is still error.
if(iPlayerUtility)
{
delete iPlayerUtility; //sometimes error happens here,when I do this frequently
iPlayerUtility = NULL;
}
iPlayerUtility = CMdaAudioPlayerUtility::NewFilePlayerL(*iFileName,*this);
Tell me how to do this,





