hi
i want to know what is the meaning of Occurrence of 'CleanupClosePushL' when i put cursor over CleanupClosePushL line
plz help me
Thanks in advance
hi
i want to know what is the meaning of Occurrence of 'CleanupClosePushL' when i put cursor over CleanupClosePushL line
plz help me
Thanks in advance
Means you used method CleanupClosePushL() there. BTW what is the actual problem?
Due to this when i run my program its give error "SYSTEM ERROR -1"
Can you show a bit more on code, so we could see what you are trying to do. -1 would indicate that something can not be found.
void CGraphicsAppView::ConstructL( const TRect& aRect )
{
CreateWindowL();
SetRect( aRect );
RFile rFile;
User::LeaveIfError(rFile.Open(CCoeEnv::Static()->FsSession(),FilePath,EFileStreamText));
CleanupClosePushL(rFile);
RFileReadStream inputFileStream(rFile);
CleanupClosePushL(inputFileStream);
fileData = HBufC::NewLC(inputFileStream, 32);
ActivateL();
}
void CGraphicsAppView:raw( const TRect& /*aRect*/ ) const
{
CWindowGc& gc = SystemGc();
TRect drawRect(Rect());
// Clears the screen
gc.Clear(drawRect);
gc.DrawRect(drawRect);
//Use draw text function for
gc.DrawText(*fileData,TPoint(10,50));
}
This code is used by me and give system error -1
Mitali
Also which line gives you errors?
Also
1)follows naming conventions.
2)do not forgot to popup the rFile and inputFileStream from cleanup stack.
3)close file handles.
4)Dont put class variable fileData to cleanup stack.
Also
5) Use e.g. BaflUtils::FileExists to check out if the file really exists before opening it.
i m declare filepath in .h as
_LIT(FilePath,"C:\\test.txt");
and check a text file created in c drive
now what to do
plz help
Mitali
It is on Computer C drive.
I want to read a text file which is on C Drive is it Possible?
Mitali
No. Only emulated Symbian OS drives like C: (under epoc32\winscw\c in Windows), D: (epoc32\winscw\d) and Z: (epoc32\release\winscw\udeb\z) are accessible through Symbian OS file operations.
Lauri