KERN EXEC 0
| Thu, 2008-08-28 15:52 | |
|
Hi, I am getting KERN-EXEC 0, while attempt to Seek() on a file that being used by Real Player for playing a video. I am attaching the code for reference. I marked the line with BOLD which cause the panic. please help me. /* CVideoTest1VideoRenderer::CVideoTest1VideoRenderer() } CVideoTest1VideoRenderer* CVideoTest1VideoRenderer::NewL(const TRect& aRect, CVideoTest1VideoRenderer* CVideoTest1VideoRenderer::NewLC(const TRect& aRect, void CVideoTest1VideoRenderer::ConstructL(const TRect& aRect, TInt CVideoTest1VideoRenderer::CountComponentControls() const CCoeControl* CVideoTest1VideoRenderer::ComponentControl( TInt aIndex) const void CVideoTest1VideoRenderer::SizeChanged() void CVideoTest1VideoRenderer::LayoutControls() TKeyResponse CVideoTest1VideoRenderer::OfferKeyEventL( if ( iFocusControl != NULL&& iFocusControl->OfferKeyEventL ( aKeyEvent, void CVideoTest1VideoRenderer::InitializeControlsL() #ifndef __WINS__ TFileName path = PathInfo::PhoneMemoryRootPath (); CDocumentHandler* iDocHandler; void CVideoTest1VideoRenderer::HandleResourceChange( TInt aType) } void CVideoTest1VideoRenderer:raw( const TRect& aRect) const } /* #include "FileHandler.h" CFileHandler::CFileHandler() : } CFileHandler::~CFileHandler() CFileHandler* CFileHandler::NewL() // TBuf8<522242> secondChunkOfData; RFile iReadFile; iTimer.After (iStatus, TTimeIntervalMicroSeconds32 (2*1000000)); void CFileHandler::RunL() void CFileHandler::WriteToFile(const TDes8& fileChunk, TBool isFirst) RFile iWriteFile; CleanupClosePushL (iWriteFile); if ( !isFirst) OutputFileStream.CommitL (); CleanupStack::PopAndDestroy (); } void CFileHandler::LaunchRealPlayer() TDataType data = TDataType (KMimeType); void CFileHandler:oCancel() TInt CFileHandler::RunError(TInt /*aError*/) Please guide me what's the problem? -Ashish Garg |
|






Forum posts: 59
KERN EXEC 0
This panic is raised when the Kernel Executive cannot find an object in the object index for the current process or current thread using the specified object index number (the raw handle number).
Forum posts: 7
Hi Amit,
Thanks for your reply, I have also read the same about KERN-EXEC 0 on the forums, but didn't able to solve the issue
.
-Ashish Garg
Forum posts: 59
i guess u need to check seekpos. May be offset specified is greater than the size of the file
Forum posts: 1242
Not related to the immediate problem at hand, but probably another error that I saw looking at the code:
CVideoTest1VideoRenderer::~CVideoTest1VideoRenderer(){
iFileHandler=NULL;
delete iFileHandler;
}
Setting NULL *before* you delete is not what you want. (And setting the pointer NULL *after* the delete is unnecessary inside a destructor.)
René Brunner
Forum posts: 7
Thanks rbunner................. i am very beginner with Symbian.......just started 4 days back.
Forum posts: 1
Hi
I am very beginner with Symbian Thank you
__________________________________________
Gmail Rocks Yahoo Mail Rocks