G
Guest
01/30/2004 I have posted "Serious bug in ngen.exe" in this thread but so far
(in .NET 1.1 SP1) this bug is not yet fixed !!! So I am repeating this post
again:
Ngen stops catching of 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. Its behaviour is different depending on whether it is
"ngen"-ed or not:
<<<ClassLibrary1.dll>>>
using System;
namespace CHD
{
public class ClassLibrary1Exception : Exception {}
}
<<<ClassLibrary2.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");
}
}
}
}
(in .NET 1.1 SP1) this bug is not yet fixed !!! So I am repeating this post
again:
Ngen stops catching of 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. Its behaviour is different depending on whether it is
"ngen"-ed or not:
<<<ClassLibrary1.dll>>>
using System;
namespace CHD
{
public class ClassLibrary1Exception : Exception {}
}
<<<ClassLibrary2.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");
}
}
}
}