Read-only archive of the All About Symbian forum (2001–2013) · About this archive

Issue in LowMem testing, KERN-EXEC 0 in file operations

0 replies · 0 views · Started 11 April 2006

Hi,

I am testing my application with the LowMem tool on the Nokia 6630. Under
normal execution, it works fine, but with LowMem, it seems to panic with a
KERN-EXEC 0.

I have located the point of the panic, the code snippet is as follows:

CPermanentFileStore* store = CPermanentFileStore::OpenLC(iFs,
iStorePath,EFileWrite|EFileShareAny );

CStreamDictionary* dictionary = CStreamDictionary::NewLC();

RStoreReadStream dictionaryStream;

dictionaryStream.OpenLC(*store, store->Root());

dictionaryStream >> *dictionary;

TStreamId dataStreamId = dictionary->At(TUid::Uid(aStreamId));

RStoreReadStream stream;

//the is the point of the panic

__UHEAP_FAILNEXT(1);

stream.OpenLC(*store, dataStreamId);

While testing on the emulator, I placed a __UHEAP_FAILNEXT as shown above,
and on doing this it gave the same panic.

Is this an issue with the API (the OpenLC() ), or am I missing something in
my code.

I need to get my application signed as soon as possible, and any help in
solving this problem will be greatly appreciated.

Thanks in advance,

Best Regards,

Jinesh.