473,320 Members | 2,052 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Serious bug in ngen.exe (2)

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
1 1590

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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: William Reyes | last post by:
I have a question regarding the use of ngen.exe and dedployment. I want to make sure I understand this correctly. If I create an app that has an .exe as well as a couple of .dll's. I can create...
2
by: Wol | last post by:
I have two assemblies, A.dll and B.dll. A.dll contains two methods. One method, UsesB, uses a type from B.dll whereas the other, DoesNotUseB, does not. To cache a native image of A.dll with...
0
by: Vlad | last post by:
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 Please provide me an email address...
2
by: JMMB | last post by:
Just a confirmation. NGen generates native code when i install the windows application on the client or when I run it for the first time? thanks,
1
by: fleimeris | last post by:
hello, i am preparing for 70-316 exam and i'm not quite sure about the answer to the following question. i want to use ngen.exe to boost the performance of my application. however, when should i...
1
by: VlaR | last post by:
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...
1
by: Sameeksha | last post by:
Hi everyone, I have observed that the ngen process appears in the list of processes in taskmgr while .net framework 1.1 gets installed. This process consumes 0-50% of cpu and 0-20K of RAM. I...
2
by: whezker | last post by:
Hi everybody. I'm trying to use the ngen tool from framework 2.0, to accelerate the load runtime of my app. I'll explain here what I'm doing. First I copy&paste the ngen.exe to the Bin folder of...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.