J
Jigar Mehta
Hye,
I am using one object which allocates around 2 MB of memory.. Now after
use, I want it to free. But the task can not be done. the memory is still
allocated and not freed. I am using it in thread. so, next time when thread
runs, whole block is allocated for the second time and in just 10 tries, my
PC got hang because of memory problem. I know GlobalFree(HGLOBAL) function
and already used it but in vain.. So, is there any function that I can run
after one turn of my thread (after which I don't want that memory at all.)
So, if the whole area is deleted then also it will be OK.
I am using one object which allocates around 2 MB of memory.. Now after
use, I want it to free. But the task can not be done. the memory is still
allocated and not freed. I am using it in thread. so, next time when thread
runs, whole block is allocated for the second time and in just 10 tries, my
PC got hang because of memory problem. I know GlobalFree(HGLOBAL) function
and already used it but in vain.. So, is there any function that I can run
after one turn of my thread (after which I don't want that memory at all.)
So, if the whole area is deleted then also it will be OK.