timerExec problem in dwt-win

torhu no at spam.invalid
Sat Sep 27 10:32:29 PDT 2008


torhu wrote:
> This test doesn't print "OK" like I think it should, it just prints 
> "ctor called".  It seems that timerExec doesn't work when called from 
> other threads than the GUI thread.  The SWT docs seem to say that this 
> should work.  Am I doing something wrong?
> 
> When doing the same thing in my real DWT app, I get an "Invalid thread 
> access" exception, but I haven't put an exception handler into the 
> secondary thread in this sample.
> 

I made a version for the old DWT and phobos too.  It behaves the same 
way, except that it actually prints "Invalid thread access".  That's 
interesting, because the with new dwt and Tango, exceptions in secondary 
threads don't propagate to the main thread.  They just seem to vanish.


More information about the Digitalmars-d-dwt mailing list