TheSwamp
Code Red => .NET => Topic started by: It's Alive! on November 06, 2006, 03:23:48 PM
-
Is there a way to ngen .net DLL files that I am going to netload? Or is this only for stand alone applications.
Thanks a ton
-
I haven't used ngen on a dll before, but you should be able to "ngen myAssembly.dll". Remember ngen will only really help with application startup times.
-
I'm not sure how it will go when Autocad goes to load it, I haven't done any study on it but when loading it may expect an un-jitted assembly to load into the clr whereas an arx would be loaded differently, perhaps you could try it by ngen'ing and renaming the dll to .arx and using appload to load it but I'd doubt it would be that easy.
Perhaps it may work as a netload after ngen, let us know how you go :)
-
That’s a good point Mick! I am afraid it won’t work anyway read:
“NGen tool interface was changed to expose a new usage model. Instead of invoking NGen on an individual assembly, NGen is now invoked on an application. This is done by running NGen on the top-level assembly in the application (the top-level assembly is the assembly that is not depended on by any other assemblies).”
It wants to NGen all of AutoCAD, That’s a bummer too since I have a ton of reactors that when fired call a hefty amount of code. The jit time is slightly annoying. I’ll just have to think of a way to fire those reactors at netload
Thanks
-
I’ll just have to think of a way to fire those reactors at netload
Daniel,
Have a look at implementing IExtensionApplication and Initialize().
-
Have a look at implementing IExtensionApplication and Initialize().
Kerry, That did exactly what I needed! Thank you very much! All I needed to do was Initialize() the methods my reactors where calling (OleDbConnection calls) at Netload, Now everything is hunky dory