Memory usage
| Sat, 2008-02-09 21:25 | |
|
Hi 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 |
|






Forum posts: 1132
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
Forum posts: 135
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!