Hi guys,
Today i was building a new routine in my system and unfortunately I took a look at the system memory, wow, what i could is even after finished that routine my app was using the same memory as before(running the routine).
So I closed my app and opened it again, the memory at this time was something around 6.334 kb. So i started surfing around my system(just opening somethings and closing) and checking the memory at the same time, the memory was just incrising never getting low again.
I'm confused now.
Does fivewin or xharbour clean memory after finished a routine? Or just clean up when the app is closed?
Regards,
Diego
Checking up the system memory
- RAMESHBABU
- Posts: 626
- Joined: Fri Oct 21, 2005 5:54 am
- Location: Secunderabad (T.S), India
Re: Checking up the system memory
Hi Diego,
If you are using Images, Brushes, Fonts, Timers in your application, you have to end their
handles immediately after closing their parent Window/Dialog.
DEFINE BRUSH oBrush RESOURCE "myresource"
DEFINE FONT oFont NAME "Ms Sans Serif" SIZE 0, -9
...
..
oFont:End()
or
RELEASE oFont
oBrush:End()
or
RELEASE oBrush
Otherwise they keep consuming the GDI Resource memory and maintains
memory leakage. And also your System memory can not be regained even
after closing your application
Hope you understood.
Regards,
- Ramesh Babu P
If you are using Images, Brushes, Fonts, Timers in your application, you have to end their
handles immediately after closing their parent Window/Dialog.
DEFINE BRUSH oBrush RESOURCE "myresource"
DEFINE FONT oFont NAME "Ms Sans Serif" SIZE 0, -9
...
..
oFont:End()
or
RELEASE oFont
oBrush:End()
or
RELEASE oBrush
Otherwise they keep consuming the GDI Resource memory and maintains
memory leakage. And also your System memory can not be regained even
after closing your application
Hope you understood.
Regards,
- Ramesh Babu P