Any delegate should work for this so I'd suggest Func instead.
From: [email protected]
[mailto:[email protected]] On Behalf Of Antonio Piteira
Sent: Thursday, February 26, 2009 2:10 AM
To: Discussion of IronPython
Subject: Re: [IronPython] Fwd: Ironp
Hi Dino,
Thanks for your reply...
I had to synchronize threads in order to avoid cross-threading operations. I
have Ironpython hosted on an aplication with plugins, every time I accessed
some form control ( Plugin Form Designer ) I got a cross-thread error, so I
needed to invoke that instance.
Cal
Depending on what you're doing you might be better off using Func
instead of CallTarget0. CallTarget0 is more of a Python implementation detail
and could change w/ major IronPython versions - or even be replaced w/
Func. it's primary purpose is to be the delegate for calling a
zero-arg Python