Array Size Problem
| Fri, 2008-03-21 13:13 | |
|
Hi friends, I have a problem in creating a two dimensional array of size 1000 X 1000 i.e It works well in S60 2nd edition. But in S60 3rd edition the application gets closed when this line gets executed. I can able to declare array size of around [400][10] .etc. Even this size problem comes for single dimensional array. I can't trace out the problem. Please some one help me to solve this problem. |
|






Forum posts: 32
You are most probably running out of memory when allocating an array that is a little bit under 4 MB. There might be more heap available on the device, but allocation might not fit to the maximum heap size defined for the process. You can change this by using EPOCHEAPSIZE keyword in the exe's mmp-file:
EPOCHEAPSIZE 1048576 8388608Previous example would define minimum heap size of 1 MB and maximum 8 MB. I think by default the maximum heap size is 1 MB.
Jari
Forum posts: 56
1000*1000*4(size of TInt) = 4 MB
thats huge..... for a small tiny phone.. plz dont do that...
i think below link might help you ..
http://wiki.forum.nokia.com/index.php/Two_Dimensional_TInt_Array_in_Symbian