From: Wayne Vucenic Date: 2003-09-29T06:01:16+09:00 Subject: Re: RubyDotNet and Drag and Drop Hi Tom and John, Thank you both for your helpful replies. I really appreciate it! I tried doing it from Ruby, but I still got exactly the same error. The only reason I could think of that this wouldn't work would be if this thread had already entered the MTA. I checked, and this was the case. For example, the simple program require 'dotnet' puts System.Threading.Thread.CurrentThread.ApartmentState.ToString outputs "MTA" So, I'll use your earlier suggestion. Thanks again, Wayne Sunday, September 28, 2003, 4:11:48 AM, you wrote: TS> I was a little fast there. It seems to be sufficient to do it from ruby: TS> System::Threading::CurrentThread.ApartmentState = TS> System::Threading::ApartmentState.STA TS> or with the module you are using, I would guess: TS> CurrentThread.ApartmentState = ApartmentState.STA