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

[REBOL] View app consuming memory

From: amicom::sonic::net at: 12-Jun-2003 16:04

Does anyone know how to get the following to not eat memory? view/new main-box: make face [size: 100x300] loop 100 [ recycle probe system/stats ;show memory usage main-box/pane: layout [slider rate 10] show main-box ] This was reduced from a MUCH more complicated commercial program in daily use, and the memory consumption problem is much more pronounced in that environment, but stems back (at least partially) to this. It is such a problem that it is not uncommon for a single instance of the program to be using over 100MB after a few hours of usage as each time the non-simplified version of the above is called, it consumes between 2 and 3MB of memory. Normally, the slider also has an 'engage function attached to it (which is 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. Even after 'unview/all and 'recycle, most of the memory consumed is still not returned. It appears to be a memory consumption bug to me. Any input would be greatly appreciated! Bohdan "Bo" Lechnowsky Lechnowsky Technical Consulting