BUG: Ngen stops catching of derived exception in multi dll applica

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");
}
}
}
}
 
G

Guest

Sorry forgot the question: Is it fixed or not ?/ When it will be fixed / Is
it possible to obtaint HotFix ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top