Re: Win32lib memory?/statement!
- Posted by Derek Parnell <ddparnell at bigpond.com> Jun 05, 2001
- 346 views
Thanks Kat. I'll see how this technique works in the library. ------ Derek Parnell Melbourne, Australia "To finish a job quickly, go slower." ----- Original Message ----- From: <gertie at ad-tek.net> To: "EUforum" <EUforum at topica.com> Subject: Re: Win32lib memory?/statement! > > > On 5 Jun 2001, at 7:08, Derek Parnell wrote: > > > > I havent given this alot of time or thought but couldnt > > > you globally track spent memory? and free only once. > > > > Sure. When would be a good moment to free it all up? > > function idle() > for loop = 1 to length(varlist) do > if var[idle] then free it > end for > end function -- idle() > > x = routine_id(idle) > > -- main code > do things..... > do_events() or sleep(0) -- and if no events in que, then we aren't busy doing something > for User, so clean up after ourselves > -- also.... > ( mirc code > to trigger the cleanup periodically > .timer [ $+ [ cleanup ] ] 0 60 do_cleanup > ) > -- or > ( if lots_on_"to_free"_list then do_cleanup ) > do other things > -- end program > > > Kat > > > >