Re: Release memory?
- Posted by Derek Parnell <ddparnell at bigpond.com> Sep 19, 2002
- 518 views
You could be right. I vaguely remember Rob saying something about Eu just using the stock standard malloc() that comes with the C compilers he uses. Maybe they are clever enough to use Windows heaps when running on NT? 19/09/2002 5:10:46 PM, rolf.schroeder at desy.de wrote: > >Derek Parnell wrote: > >> ... >> Each time a Euphoria program need more memory for a sequence operation, the >> memory is taken from the program's heap, but if the heap is not large enough >> the program grabs a bit more RAM from the operating system (thus increasing >> the size of th eprogram's heap), and the heap is not returned until the >> program ends. >> >> This also applies to allocate() and allocate_string() calls. >> > >Derek, > >I'm not sure if this really is true. I run lots of EU-programs on a >WinNT machine, and when I watch the memory consumption of each program, >then I watch during one inner program loop increasing and decreasing >memory consumption which means in my opinion that memory is returned to >the OS (I don't use allocate() and free()). > >But the true expert (about the lots of experts on the list) is Rob. Rob? > >Nave a nice day, Rolf > > > > --------- Cheers, Derek Parnell ICQ# 7647806