[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

VRuby and Timeout

npoly_iki

11/7/2003 12:16:00 PM

Hi

I am getting an execution timeout in a timeout block executed in a
vruby
handler. It seems that some weird things are happenning with threads
and vruby.
I think the primary thread goes into messageLoop mode (again) once
awaken after the secondary (timeout) thread is created and is running.

Has anybody encoutered anything similar?

Thanks

Sample Script
---------------
require 'vr/vruby'
require 'vr/vrcontrol'
require 'timeout'

class VRMyForm <VRForm


def construct
move 100,150,150,100
addControl(VRButton,'execute'," Execute ",40,30,80,30)
end

def execute_clicked
timeout(5) {
'do nothing'
}
end
end

VRLocalScreen.showForm(VRMyForm)
VRLocalScreen.messageloop