General information
Title:
Where is the memory???
VFP 6.0: I have problems with slowdowning the application, when it's running a longer time. I thought it's due to free memory, so I started to watch the sys(1016) function showing the memory used by user objects. I found out, that the amount of used memory is still increasing!
Here's a simple example - you can try it too:
I started newly VFP 6.0:
sys(1016) shows 308 012 B.
I execute m.O=CreateObject("Form") (new empty form)
sys(1016) now shows 315 172 B. (form takes 7160 B of memory)
now I do RELEASE m.O or i m.O.Release and then Release m.O, (doesn't matter)
sys(1016) now shows 309 832 B - so part of used memory was released, but part of it remains used - 1820 B !
Repeating creating and releasing objects (and that's what mostly applications do...), the used memory is still increasing and increasing and application is slowing down and slowing down...
After doing CLEAR MEMO, sys(1016) shows 309768 (still 1756 B is somewhere). I tried also partial CLEARs, but with no effect. Only after CLEAR ALL shows 308 360 - remained only 348 B, but you never achieve the initial value 308 012 B).
The question is: Where is the memory? What can I do to release the memory? Or I miss some setting?
Help needed. Thanks.
Petr
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only