Hello, my dear friends!
I have a strange problem, my application always crashed when I try to create fixed size array of unsigned char.
For example:
with that exception:Code:unsigned char* some_name = new unsigned char[360 * 579];
I tried to increase maximum heap size and stack size via EPOCSTACKSIZE and EPOCHEAPSIZE at MMP file - but without any results.Code:Thread [Thread id: 706] (Suspended: Signal 'Exception 100' received. Description: Thread 0x2c2 has panicked. Category: ViewSrv; Reason: 11.) 2 Unknown (0x80808080)() 0x80808080 1 Unknown (0x80808080)() 0x80808080
If I allocate memory via ChunkHeap, like:
it works for a little, but then crashed again.Code:RHeap *pChunkHeap = UserHeap::ChunkHeap(NULL, 360 * 579, 360 * 579 * 2); TInt size = 360 * 579; some_name = (unsigned char*) pChunkHeap->Alloc(size);
Can you help me with that problem?
P.S. I have not worked with a C++ for a long long time and maybe I forgot or don't know some tricks (:
thank you very much for you help and sorry for possible mistakes, english isn't my native or second language.
Params: Carbide.C++, S60 5th Edition SDK v1.0, GCCE.

Reply With Quote


