VRuby and Timeout

I

Iki

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,776
Messages
2,569,602
Members
45,182
Latest member
BettinaPol

Latest Threads

Top