[IronPython] Issue Triage

2010-12-13 Thread Richard Nienaber
The issues below look like they can be set to fixed. - ref parameter doesn't work with protected methodshttp://ironpython.codeplex.com/workitem/19649 - Skype4COM and System.Windows.Forms.AxHost+Invalidhttp://ironpython.codeplex.com/workitem/14150 ActiveXStateException

[IronPython] Thread Locking

2010-12-13 Thread Sam Dozor
Hello All, I'm trying to use IronPython to lock a thread and have not been able to import the correct modules. I have IronPython.modules.dll in the same directory as IronPython.dll, and yet when I try the line import threading I get something like threading module does not exist. I'm

Re: [IronPython] Thread Locking

2010-12-13 Thread Dino Viehland
Lock is just syntactic sugar for doing Monitor.Enter/Monitor.Exit calls on the object and setting up the try/finally. Here's the IronPython equivalent: from System.Threading import Monitor class Locker(object): def __init__(self, obj): self.obj = obj def __enter__(self):

Re: [IronPython] adding items to a listview (what am I doing wrong)

2010-12-13 Thread Leighton Haynes
This looks like winforms, which I haven't used in ages, but I'm guessing that it's because you're changing the item inside the ListView's items collection, but the ListView doesn't know that the items collection has changed. You can probably set the ListView Items property to null and then back