[Mono-devel-list] Assembly.GetType hangs?
Kris Luyten
kris.luyten at luc.ac.be
Mon Sep 29 11:42:17 EDT 2003
Hi,
I don't know if this is normal behaviour, but I though I'll post it
anyway. When using Assembly.GetType(String, true, true) with an
erroneous string starting with a "&", the method hangs itself. I think
it is suppose to throw an "ArgumentException" according to the msdn.
For example, the following code waits forever in GetType:
=====
using System;
using System.Reflection;
public class Sample
{
public static void Main()
{
Assembly a = Assembly.Load("corlib.dll");
Console.WriteLine("1");
Type t = a.GetType("&blabla", true, true);
Console.WriteLine("2");
}
}
=====
I am currently using mono and mcs from CVS.
Regards,
Kris
--
Kris Luyten
Expertisecentrum Digitale Media - Limburgs Universitair Centrum
Wetenschapspark 2 3590 Diepenbeek (Belgium)
tel.: +32 (0)11 268411
email: kris.luyten at luc.ac.be
PGP-key: http://lumumba.luc.ac.be/kris/kris-pub.txt
homepage: http://lumumba.luc.ac.be/kris/
More information about the Mono-devel-list
mailing list