Hi all.
I've tried the simple code:
Thread.new{ runMessageCycle}
puts 'here'
where runMessageCycle is a simple C extension method with Win32 message
cycle:
static VALUE run(VALUE _self)
{
MSG msg;
while (::GetMessage(&msg, NULL, 0, 0))
{
::TranslateMessage(&msg);
::DispatchMessage(&msg);
}
return _self;
}
I'm very surprised that Thread.new don't returns ("here" will be never
printed).
What is silly with my code?
Thanks,
Victor.