Hrm... I'm trying to get some sample code so I can provide a repro for you
guys, but it's proving difficult. The following C# code is *all* fine when
called from IronRuby
public static class II
{
public static void GetData(this string str, int inint, out int outint,
out string outstr)
{
outint = inint * 10;
outstr = outint.ToString();
Console.WriteLine("str="+str);
}
public static void GetXHR(this string str, out MSXML2.IXMLHTTPRequest
xhr)
{
xhr = new MSXML2.XMLHTTPClass();
}
public static void GetDualXhrFromCoClass(this string str, out
MSXML2.IXMLHTTPRequest xhr1, out MSXML2.IXMLHTTPRequest xhr2)
{
xhr1 = new MSXML2.XMLHTTPClass();
xhr2 = new MSXML2.XMLHTTPClass();
}
public static void GetDualXhrFromCLSID(this string str, out object xhr1,
out object xhr2)
{
var t = Type.GetTypeFromCLSID(new
Guid("F6D90F16-9C73-11D3-B32E-00C04F990BB4")); // guid of
MSXML2.XMLHTTPClass
xhr1 = Activator.CreateInstance(t);
xhr2 = Activator.CreateInstance(t);
}
public static void GetDualXhrWithCast(this string str, out
MSXML2.IXMLHTTPRequest xhr1, out MSXML2.IXMLHTTPRequest xhr2)
{
var t = Type.GetTypeFromCLSID(new
Guid("F6D90F16-9C73-11D3-B32E-00C04F990BB4")); // guid of
MSXML2.XMLHTTPClass
xhr1 = Activator.CreateInstance(t) as MSXML2.IXMLHTTPRequest;
xhr2 = Activator.CreateInstance(t) as MSXML2.IXMLHTTPRequest;
}
}
On Wed, Sep 30, 2009 at 12:19 PM, Jimmy Schementi <
[email protected]> wrote:
> The error message seems to indicate this is the same issue you had in your
> "Another 0.9.1 regression" mail.
>
>
>
_______________________________________________
Ironruby-core mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ironruby-core