Home » U++ Library support » U++ Core » A couple of issues with a test app
Re: A couple of issues with a test app [message #13419 is a reply to message #13410] |
Sat, 05 January 2008 09:19   |
 |
mirek
Messages: 14267 Registered: November 2005
|
Ultimate Member |
|
|
cbpporter wrote on Fri, 04 January 2008 09:51 | Hi!
I started to create a test app for a small Kanji flash-card program, and right now I'm at the phase where I need to load some XML, save them as some other format that is a lot smaller and saves space, and then implement the flash card interface.
But I have tree issues:
1. During loading the huge XML, the occupied memory grows to over 150MB, and after storing just a fraction of the data in a column list, the memory is not freed. Since I'm not doing manual memory managment, I don't know why it isn't freed. It is not freed even if I call Clear on the list (which it shouldn't, because the list should have no way to take up such amounts of memory), which leads me to the second issue.
|
Unfortunately, once memory is obtained from system, it is near to impossible to give it back...
The real problem is that the total number of memory blocks that are obtained from system is limited.
That can of course be "fixed" by allocating bigger blocks, but in that case there is much more unlikely that memory block is completely free.
So in the end U++ does never return the memory to the system. In fact, this in reality is a little problem - unused memory pages can be swapped away...
Mirek
|
|
|
Goto Forum:
Current Time: Mon Aug 04 00:17:39 CEST 2025
Total time taken to generate the page: 0.07824 seconds
|