Thanks for the repro, Jon, we'll fix this right away. apart from changing the 
code, here is another workaround:

clr.AddReferenceByPartialName("System.Xml")

Martin

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jon Kale
Sent: Wednesday, February 15, 2006 5:35 PM
To: 'Discussion of IronPython'
Subject: Re: [IronPython] IronPython 1.0 Beta 3 Released!

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

_______________________________________________
users mailing list
users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
_______________________________________________
users mailing list
users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to