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

[REBOL] Re: Memory leak on View faces using "feel"..

From: nitsch-lists::netcologne::de at: 17-Oct-2003 0:55

Am Freitag, 17. Oktober 2003 00:05 schrieb Terry Brownell:
> I've noticed a memory leak when you hover a mouse over any face using the > "feel" user interface events. Is this a known bug or ? If you run the > example below, and watch the memory usage of the Rebol.exe running it, it > will go up when you hover. Same thing with the engage feel. >
Normal GC-behavior. if you run this: view layout [ f-mem: field 70x24 center green rate 3 feel [ engage: func [face a e] [ face/text: reform [ to-integer system/stats / 1024 "KB"] show face ] ] ] you will see the number goes up for a while and suddenly jump down. The GC runs in intervals. a while it allocates when memory is requested for event-processing etc. you see the number go up. after some MB it thinks its time to collect. after the collection it gives unused memory free. number goes down. a GC has to inspect each object if it can be thrown away. so it to delay that. once check-all for a lot allocations instead of one check-all for each allocation. otherwise rebol would crawl. (if this checker goes not down after a minute/some mb theres reason to worry.
> view layout [ > [ box "A Box" forest feel [ > [ over: func [face act pos] [print [act pos]] > [ ] > [ ] > > OS: Win2k > (Example from the "How to Handle User Interface Events" doc) >
-Volker