Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: View app consuming memory

From: nitsch-lists:netcologne at: 13-Jun-2003 3:23

Romano Paolo Tenca wrote:
>Hi, > >>Does anyone know how to get the following to not eat memory? >> > >view/new main-box: make face [size: 100x300] >main-box/pane: layout [sl: slider rate 10] >loop 1000 [ > probe system/stats ;show memory usage > sl/rate: none > show sl > main-box/pane: layout [sl: slider rate 10] > show main-box >] > >>triggered by 'rate), but that was removed for clarity. The problem doesn't >>seem to happen other than with 'rate enabled on the facet (at least it >>hasn't in my tests). It does not appear to be limited to the 'slider facet. >>
because 'rate runs even if we throw the face away. And so does not get garbage-collected: view/new main-box: make face [size: 300x300] main-box/pane: layout [ sl: slider rate 10 feel [engage: func [f a e] [probe random 6]] ; will run without face visible.. ] show main-box main-box/pane: layout [text "no slider"] show main-box do-events