FYI - http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=1306

I want to create a CLR Thread and set its AparmentState before calling Start on 
it. However, doing System::Threading::Thread.new 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 = System::Threading::ThreadStart.new { puts "in thread" }
=> System.Threading.ThreadStart
>>> ts.invoke
in thread
=> nil
>>> t = System::Threading::Thread.new ts
:0:in `new': must be called with a block (ThreadError)
from :0

This is the converse case of 
http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=1082.


_______________________________________________
Ironruby-core mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ironruby-core

Reply via email to