Patrick,

Just a guess: can you clarify the 'while' loop with a 'do' I wonder?

Just wondering whether the interpreter is getting confused here - and 
the extra 'puts' is somehow clarifying the situation for it ?

Cheers

John

ie:

while engine.nextFrame(key) do
...

-- 
Posted via http://www.ruby-forum.com/.