[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: RubyDotNet and Drag and Drop

John R. Pierce

9/28/2003 7:27:00 PM

On Sun, 28 Sep 2003 19:31:42 +0900, "Thomas Sondergaard" wrote:

> Apparently there is a need to set the COM ApartmentState to STA
>
> Adding this in the first line of the ruby Init_dotnet function makes it go
> away:
>
> System::Threading::Thread::CurrentThread->ApartmentState =
> System::Threading::ApartmentState::STA;

Yep, our Ruby C extension bridge to .NET didn't set the ApartmentState to enable
drag n' drop operations. This has been fixed and will be in the next release
(R5). Thanks so much Thomas for the correct fix!

Regards,

John