Serious bug in ngen.exe (2)

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

Mattias Sjögren

Good catch, thanks for posting this. Since no one from PSS appear to
have picked this up, I passed it on to make sure it was logged.

FWIW, the problem seems to be fixed already in Whidbey.



Mattias
 

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