G
Guest
As I got no reply to my first post ("Serious bug in ngen.exe") within few business days but having
MSDN Universal Subscription I posting this problem again (with just registered nospam alias).
I have found a serious bug in ngen related to stop catching derived exception in multi dll application.
I have reproduced this bug in the very simple application which consists of 2 dll and 1 exe file:
<<<ClassLibrary1.dll>>>
using System;
namespace CHD
{
public class ClassLibrary1Exception : Exception {}
}
<<<ClassLibrary1.dll>>>
using System;
namespace CHD
{
public class ClassLibrary2Exception : ClassLibrary1Exception {}
}
<<<NGEN_Bug.exe>>>
using System;
namespace CHD
{
class NGEN_Bug
{
static void Main ()
{
try
{
throw new ClassLibrary2Exception ();
}
catch (ClassLibrary1Exception)
{
Console.WriteLine ("Exception catched");
}
}
}
}
MSDN Universal Subscription I posting this problem again (with just registered nospam alias).
I have found a serious bug in ngen related to stop catching derived exception in multi dll application.
I have reproduced this bug in the very simple application which consists of 2 dll and 1 exe file:
<<<ClassLibrary1.dll>>>
using System;
namespace CHD
{
public class ClassLibrary1Exception : Exception {}
}
<<<ClassLibrary1.dll>>>
using System;
namespace CHD
{
public class ClassLibrary2Exception : ClassLibrary1Exception {}
}
<<<NGEN_Bug.exe>>>
using System;
namespace CHD
{
class NGEN_Bug
{
static void Main ()
{
try
{
throw new ClassLibrary2Exception ();
}
catch (ClassLibrary1Exception)
{
Console.WriteLine ("Exception catched");
}
}
}
}