Page 1 of 1

the memory consumption is still increasing...

Posted: Wed May 07, 2014 10:43 am
by jpp
Hi to all,

I'm allways in trouble with memory consumption when using grids.
I've made an app and after one day of using it i've seen that the memory used was about 200 Mo, instead of 5 Mo a the start.

thinking it comes from my app, i've made the same test with grid02 sample from hmg3.2.
At the start the memory is about 5Mo. after scrolling the grid 10 times with pgup and pgdn the memoty is about 10Mo and this increase has no limit until the app hangs.

I've tried with wp, win7, Win8 and the result is the same...

What makes me in trouble is that if you iconise the app the memory falls to less than 1Mo, if you call it back memory is about 2Mo ( twice less than the start of the program )

if tried to call the harbour memory garbage collector but no effect...

have you a workaround to make hmg app's more 'memory reliable' ?

thanks

Re: the memory consumption is still increasing...

Posted: Wed May 07, 2014 7:12 pm
by Rathinagiri
Are you using virtual grid or normal grid?

Try to use virtual grid.

Re: the memory consumption is still increasing...

Posted: Wed May 07, 2014 11:36 pm
by meneale
I've have the problem with memory consumption too, but with timer, is consumed 50~150 KB of memory every time that timer interval is reached and a function is called.
In first instance i thought that function stock the variables, but it used only LOCAL variables, and without using variables this still occurs.
And in everytime the program is running 5 hours consecutives it stop running itself.

Re: the memory consumption is still increasing...

Posted: Mon May 12, 2014 7:26 am
by jpp
hi,

The problem is the same with normal or virtual grid. Each time you press pgdn or pgup the memory consumption increase.

but what makes me in trouble is the fact that if you minimise the app and maximise it the memory falls down less than at the start of the program....

As i have no answer about it, i wonder how people who are using grids with intensive usage have no memory problem !!!