Memory leak on View faces using "feel"..
[1/3] from: tbrownell:y:ahoo at: 16-Oct-2003 15:05
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.
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)
[2/3] from: andrew:martin:colenso:school at: 24-Dec-2003 22:41
Terry wrote:
> 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.
> view layout [
> [ box "A Box" forest feel [
> [ over: func [face act pos] [print [act pos]]
> [ ]
> [ ]
>
> OS: Win2k
I get the same thing on Windows 2000. Perhaps it's Rebol's allocation of
storage space for printed lines at the console? Every time 'print is
evaluated, there's a new entry in the console terminal windows.
Andrew J Martin
Attendance Officer
& Grail Jedi.
Colenso High School
Arnold Street, Napier.
Tel: 64-6-8310180 ext 826
Fax: 64-6-8336759
http://colenso.net/scripts/Wiki.r?AJM
http://www.colenso.school.nz/
DISCLAIMER: Colenso High School and its Board of Trustees is not responsible (or legally
liable) for materials distributed to or acquired from user e-mail accounts. You can report
any
misuse of an e-mail account to our ICT Manager and the complaint will be investigated.
(Misuse can come in many forms, but can be viewed as any material sent/received that
indicate or suggest pornography, unethical or illegal solicitation, racism, sexism, inappropriate
language and/or other issues described in our Acceptable Use Policy.)
All outgoing messages are certified virus-free by McAfee GroupShield Exchange 5.10.285.0
Phone: +64 6 843 5095 or Fax: +64 6 833 6759 or E-mail: [postmaster--colenso--school--nz]
[3/3] 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 [
<<quoted lines omitted: 3>>
> OS: Win2k
> (Example from the "How to Handle User Interface Events" doc)
-Volker
Notes
- Quoted lines have been omitted from some messages.
View the message alone to see the lines that have been omitted