Hello friends,
Still not solved the problem I discussed in previous thread.
While debuging my code I got memory leak at
iUtility->OpenFileL(/*KNewVideoFileName*/filePath, aCameraHandle, iControllerUid, iFormatUid);
line in following code.
And because of it my app get exits, and I'm not able to do video recording.
Where as the same code in Vrex example is working fine.
Please see the code bellow:
HTML Code:
-----------------VideoRecorderAdapter.cpp----------------------
void CVideoRecorderAdapter::StartL(TInt aCameraHandle)
{
// Set callbacks for UI updates
TFileName filePath = PathInfo::PhoneMemoryRootPath();
filePath.Append(PathInfo::VideosPath());
filePath.Append(KNewVideoFileName);
// Open file
// On completion, MvruoOpenComplete will be called, and it will initiate
// the recording process by calling iUtility->Prepare
iUtility->OpenFileL(/*KNewVideoFileName*/filePath, aCameraHandle, iControllerUid, iFormatUid);
}
Where could be the problem in my code. Can anybody help me?
Thanks,