removing memory


sunil_josh1
03-13-2004, 08:17 AM
hi,
i am allocating memory for one and two dimension array using malloc. The whole process is going in side a loop (approx. 16000 time) and every times memory is updating. Therefore it is taking lots of memory space. I am intresed to delete that memory space every times when loop is finised. I tried to assige zero value every time before the process taking place but it is not working.
with warm regards,
sunil_josh1

ab1234
03-24-2007, 01:03 PM
hi :
with wich launguage ?
generally , you must use API functions :

use after blocks code : freemem() or :

allocmem(),getmem() ------> freemem ()
globalalloc() ------> globalfree()
virtualalloc() -------> virtualfree()
new() -------> dispose()