[IronPython] IronPython 1.0 Beta 3 Released!

Jon Kale jon at datasim.co.uk
Thu Feb 16 02:35:17 CET 2006


Trying to add a reference to System.Xml, I get StackOverflowException. 

[] C:\Program Files\IronPython (Thu 16/02  1:19)
>IronPythonConsole.exe -X:TabCompletion
IronPython 1.0.2237 (Beta) on .NET 2.0.50727.42
Copyright (c) Microsoft Corporation. All rights reserved.
>>> import clr
>>> clr.AddReference("System.Xml")

Process is terminated due to StackOverflowException.

The fix appears to be to change AddReference(object reference):

private void AddReference(object reference) 
{
    string strRef = reference as string;
    if (strRef != null) {
        AddReference(strRef);
        return;
     }
     AddReference(reference, null);
}

but since this is my first time in the IP code I could well be wrong...
--
Jon




More information about the Ironpython-users mailing list