Re: Prob in Ngen Com Addin.
From: Alvin Bruney [MVP] (vapor)
Date: 10/07/04
- Next message: Isaac: "Re: Prob in Ngen Com Addin."
- Previous message: Isaac Varghese: "Prob in Ngen Com Addin."
- In reply to: Isaac Varghese: "Prob in Ngen Com Addin."
- Next in thread: Isaac: "Re: Prob in Ngen Com Addin."
- Reply: Isaac: "Re: Prob in Ngen Com Addin."
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 7 Oct 2004 08:06:02 -0500
ngen is used for managed code. add-ins are unmanaged code. Even if you use
the primary interop assemblies, it does not translate the unmanaged code
into managed code. it simply provides the appropriate metadata for the clr.
The actual code is still unmanaged code which you cannot ngen.
-- Regards, Alvin Bruney [ASP.NET MVP http://mvp.support.microsoft.com/default.aspx] Got tidbits? Get it here... http://tinyurl.com/27*** "Isaac Varghese" <isaac.varghese@lehman.com> wrote in message news:ed44021a.0410070102.33b772b2@posting.google.com... > I'm not sure i'm posting the question in the right grp..if not pls > redirect me to correct location.. > > Here is my problem.I know that by producing the native image of an > assembly ,i can reduce the startup time and i experienced that with a > sample windows application. > > And I tried the same with my project ,which is an outlook > addin(developed in c#). To explain further this addin have refernec to > Interop.MAPI,Interop.Outlook and couple of other dlls. And when i ran > ngen on these dlls (exactly the same way as mentioned in msdn > documents),i was extremely happy to see that all my dlls are in > assembly cache with type Native Images ,everythng as expected. > > But when i opened outlook (addin will load at startup) i couldn't fine > any difference.So i used the tool PerfMon(part of MS.NET SDK) and i > found that no of methods JITed is exactly the same in both > scenarios (with normal dlls and ngned dlls). > > Is there any particular thing i need to take care when i NGEN com > addin dlls.What i'm doing wrong?? > > any help with respect to this will be greatly appreciated.
- Next message: Isaac: "Re: Prob in Ngen Com Addin."
- Previous message: Isaac Varghese: "Prob in Ngen Com Addin."
- In reply to: Isaac Varghese: "Prob in Ngen Com Addin."
- Next in thread: Isaac: "Re: Prob in Ngen Com Addin."
- Reply: Isaac: "Re: Prob in Ngen Com Addin."
- Messages sorted by: [ date ] [ thread ]