[IronPython] help with activex error

Krishna Padmasola kpadmasola at gmail.com
Thu Sep 20 12:14:00 CEST 2007


I'm trying to add the remote desktop activex control to a windows form and
am getting the following error. How can I fix this?

thanks for your help,

C:\IronPython-1.1>ipy -X:TabCompletion
IronPython 1.1 (1.1) on .NET 2.0.50727.312
Copyright (c) Microsoft Corporation. All rights reserved.
>>> import winforms
>>> import System
>>> import System.Windows.Forms as wf
>>> f = wf.Form()
>>> f.Show()
>>> import clr
>>> clr.AddReferenceToFile("AxMSTSCLib.dll")
>>> import AxMSTSCLib as mstsc
>>> rdp = mstsc.AxMsRdpClient2()
Traceback (most recent call last):
SystemError: ActiveX control '9059f30f-4eb1-4bd2-9fdc-36f43a218f4a' cannot
be instantiated because the current thread is not in a single-threaded
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20070920/0dbb8f10/attachment.html>

More information about the Ironpython-users mailing list