Forum: IronRuby Bug - Cannot call CLR constructor of builtin type

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Shri B. (Guest)
on 2009-05-19 23:08
(Received via mailing list)

I want to create a CLR Thread and set its AparmentState before calling
Start on it. However, doing calls the Ruby
intialize method (since System::Threading::Thread and IronRuby's Thread
map to the same thing) which automatically calls Start. How can I create
an STA thread?

>>> ts = { puts "in thread" }
=> System.Threading.ThreadStart
>>> ts.invoke
in thread
=> nil
>>> t = ts
:0:in `new': must be called with a block (ThreadError)
from :0

This is the converse case of
This topic is locked and can not be replied to.