By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,857 Members | 1,768 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,857 IT Pros & Developers. It's quick & easy.

Serious bug in ngen.exe (2)

P: n/a
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");
}
}
}
}
Jul 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a

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

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Jul 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.