Memory usage

Login to reply to this topic.
Sat, 2008-02-09 21:25
Joined: 2005-09-04
Forum posts: 135

Hi
On S60 3rd edition:
Tracing RAM while running my application shows that it uses less than 1 mb at first but after repeating some operations many times (Telephony operations, retrieving DB vars (DBMS) and changing between screens) -
RAM is decreased and I get "memory full" even though I increased app HEAP size to 3 mb.
Please advice:
What type of operations could increase RAM usage so much?
Could Telephony operations or DBMS actions increase RAM usage irreversibly or should I suspect only heap usage?
or maybe UI backgound?

I ask all this because it seems strange to me that this app uses so much heap size as I delete heap vars after usage, and I'm just very confused about the reasons for this behavior.

Thank you very much


Sat, 2008-02-09 22:06
Joined: 2005-11-20
Forum posts: 1132
Re: Memory usage

Sounds awfully like a memory leak in your own code to me.

I had such cases: The program terminated properly, as if their were no memory leak. But I forgot to clear an array before adding new elements to it. Result: Array grew and grew the longer the program ran, until memory was full. Proper termination and cleanup on the other hand was no problem because the array, however big, and all its elements were releases as a unit.

Do you see what I mean?


René Brunner

Mon, 2008-02-18 07:30
Joined: 2005-09-04
Forum posts: 135
Re: Memory usage

Thank you very much
I believe I found and solved the problem.
I used a DBMS view as a class var and did not close it after usage (and I use it many times) which caused a memory leak.

Enjoy your week!

  • Login to reply to this topic.