Fox threading issues

:-----Original Message-----
:
:David Naseby wrote:
:
:> The program shows the Linux like behaviour on Windows for me
:(locking up). I
:> use ruby 1.6.7 (2002-09-12) [i586-mswin32], obtained from
:>
:http://www.ruby-lang.org/~usa/mswin32/ruby-1.6.7-20020912-1586-
mswin32.zip

and copied over the ruby directory installed by the Prag Prog windows
installer.

:Threads are broken for the Windows version of Ruby 1.6.7. This has
:always been true and will always be true. It is not, and never was, an
:FXRuby bug. This bug is fixed in the CVS sources for Ruby 1.6.8 and :Ruby
1.7.3.

The version linked above is built from the latest stable version - this
version has the threading fix applied to it.

:> The lockups are caused by repeating the addTimeOuts. FXApp#addTimeOut is
a
:> buggy method under FXRuby at present. Use Ruby threads for repetitious
:> control, avoid Fox timeouts like the plague.

:I think David is correct that something is wrong for FXApp#addTimeout,
:although several of the FXRuby example programs use them without ever
locking up.

I think I can always reproduce the problem if the onTimeOut event triggered
by a timeout calls FXApp#addTimeOut. Timeouts otherwise seem fine (if other
events (such as mouseovers) trigger a timeout, it can expire happily). Just
seems to occur if you chain them.

David Naseby