[IronPython] CallTarget0

Andrzej Krzywda andrzej.krzywda at resolversystems.com
Wed Jun 21 09:51:53 PDT 2006


Hi,

We are in the process of upgrading an application from IronPython Beta 5 
to Beta 8.  Previously it would execute certain functions on the thread 
belonging to our GUI controls:

    def DoSomething()
        pass

    form.Invoke(CallTarget0(DoSomething))

In beta 8, the CallTarget0 class has been removed - what should we 
replace it with?  We tried simply passing the function to the Invoke() 
method, but this failed with "SystemError: Object reference not set to 
an instance of an object."


Regards,

Andrzej Krzywda


More information about the Users mailing list