Heap Size

Tutorials with advanced 'difficulty' and more Lines of Code.

Heap Size

Postby dkkundudolan » Mon May 19, 2008 10:53 am

Hi All,

Can anybody explain me about Heap Size? what for it is used? please give a tutorial of that.

Thanks ,
Dolan
dkkundudolan
Experienced Developer
Experienced Developer
 
Posts: 83
Joined: Mon Mar 03, 2008 12:50 pm

Top

Postby Jesmiatka » Mon May 19, 2008 12:31 pm

I do not know if the following information is correct, but I am telling this out of my own experience

I think there is not much to explain about Heap size.
The Heap is the memory that your application uses of the phone, which has a maximum of 16 MB per application. If you exceed this your application will crash with the "Out of memory" error.
You can prevent this from growing too much by just simply not keeping everything in your memory that you use. (For Example: Finishing activities, closing the camera etc)
At this moment there is a bug known that prevents activities to be removed from the memory if they've started a thread. I worked around this with some forced GC's in my code (nasty ;) will remove that when they fixed it), which frees up some of that used memory some times.

Yours sincerely,
Mike
Jesmiatka
Senior Developer
Senior Developer
 
Posts: 164
Joined: Mon Feb 04, 2008 3:37 pm
Location: Netherlands

Postby dkkundudolan » Mon May 19, 2008 1:02 pm

Hi Jesmiatka,

Thanks for your reply. This is the one what i was lookig for.
Again thanks for your tutorial.

Dolan.
dkkundudolan
Experienced Developer
Experienced Developer
 
Posts: 83
Joined: Mon Mar 03, 2008 12:50 pm

Top

Return to Advanced Tutorials

Who is online

Users browsing this forum: No registered users and 2 guests