R3GUI does not, by chance, generate READ events :) ?
GrahamC
It's not due to the timer code because I saw this bug before then
Cyphre
Andreas, fortunately no :)
Andreas
Well, fortunate for R3GUI, I guess :)
Cyphre
ah, sorry it's not READ but CONNECT event!
Andreas, yes :)
GrahamC
The original CC ticket created by Adrian doesn't actually say what Carl fixed
GrahamC
If I close the gui down, does that just leave the network events running?
Cyphre
I tried to put RECYCLE into the awake handler on every triggered call and I'm now getting: ** Internal error: not enough memory ** Where: read switch awake switch -apply- wake-up loop -apply- wait forever try do-events if view do case either include-script include all do either either ei ther -apply- ** Near: read event/port/state/connection
So there must be something fishy here...
GrahamC
I saw memory errors like this before too
GrahamC
so, you can't even inspect the event because that triggers the crash
GrahamC
I had my client running for 4.5 hours. Just sitting there and downloading the SO chat messages every 5 seconds but NOT updating the GUI. No crashes. But as soon as I changed the code to update the GUI, it crashed.
Luis
How to write this line in rebol3 ? : view layout [ button "x: 123" [x: 123] button "print x"[ print x ] ]
Bo
I haven't done much with R3-GUI yet, but I think it's something like this:
In Rebol3 after press "x: 123" button pressing "print x" button I get: ** Script error: x has no value ... ( REBOL/version 2.101.0.3.1 saphir-view)
Endo
You should use SET: view [button "a" on-action [x: 123]] print x ; ** error view [button "a" on-action [set 'x 123]] print x ; == 123
This is because layout block is used by a FUNCT (makes every set word local to function) I think.
Cyphre
Luis the set-word!s in on-action blocks are by default defined as local variables. That's why "x has no value". The correct version is then: view [ button "x: 123" on-action [set 'x 123] button "print x" on-action [print x] ]
or you can use for example contexts (and other variations):
I really don't like this SET XYZ style. IMO it would be nice to have:
local-set-word: global-set-word::
Cyphre
This is normal REBOL behaviour..it's nothing special that was invented by R3GUI :-) So either we switch the actors to be normal FUNCs or get used to have FUNCTs I don't think is is a good decission to intorduce some non-rebol-compatible syntax here (fcourse unless there is wide agreement on that at the REBOL language level).