KErrOverflow:HBufC8* txtFile = HBufC8::NewLC(stream, stream.Source()->SizeL()) ;

Login to reply to this topic.
Thu, 2005-06-23 16:22
Joined: 2005-06-13
Forum posts: 68
Code:
   RFileReadStream stream;

   stream.Open(aFs, aFilename,EFileRead);

   TInt iSize = stream.Source()->SizeL();
   
   HBufC8* txtFile = HBufC8::NewLC(stream, iSize) ;     // ceci cause un "buffer overflow"

   stream.Close() ;

If we fall down it's so we can learn to pick ourselves up.

  • Login to reply to this topic.