Dear all
I have met a problem during reading data from a resource file. I have refered to the default example code (base\readdata), but I got a "program close" error in my emulator
the following the part of my code for reading data
**********************************************
RResourceFile resourceFile;
RFs fsSession;
fsSession.Connect();
resourceFile.OpenL( fsSession, _L ("C:\\system\\apps\\owm\\owm.rsc") );
resourceFile.ConfirmSignatureL(0);
HBufC8* res = resourceFile.AllocReadLC(CDA);
iLog->Log(_L("dddd"));
delete res;
resourceFile.Close();
fsSession.Close();
iLog->LogNewline();
**********************************************
I know that i have to call ConfirmSignature() before calling AllocReadLC(), but I still get the error. I can log the string "dddd" so it means i got the error after calling the AllocReadLC or probably later
So anyone knows what's going on????
Help~~~~~
thx a lot

Reply With Quote

