Dear All,
I have developed a client .net application that gets launched via
No Touch Deployment...using the Assembly.LoadForm method...I have a
dll xrt.dll for which I have not maintained versioning...
When I launch my application after a machine reboot (xrt.dll already
present on client machine) it takes 2 seconds to load this dll...I
assume this is because I have not maintained versioning of this dll
and hence it downloads this dll again...but if I close my application
and start it again, this dll gets loaded in 300ms seconds...how come
it is fast the second time? My guess is it should have still taken 2
seconds...can someone explain wot is MS doing here...
I swear the following...:-)
1. xrt.dll was not changed in the server.
2. xrt.dll was already present on the client machine. (I ran the
application once and then restarted my client machine).
Please help...I want to enjoy my X'Mas...:-)
TALIA
Many Regards
Jack
Chris, Master of All Things Insignificant - 23 Dec 2004 19:49 GMT
The first time the dll is run on the machine the JIT Compiler compiles the
dll. The second time your run it, it is already compiled; it looks to see
that a new version doesn't exist first. Whenever you restart the dll have to
be recompiled. There is a way to "pre-compile" the .net dll on that
machine, but I don't remember the name of the exe to do it.
Chris
> Dear All,
> I have developed a client .net application that gets launched via
[quoted text clipped - 17 lines]
> Many Regards
> Jack
Michael Pearson - 27 Dec 2004 22:05 GMT
ngen to "pre-compile"
Michael
> The first time the dll is run on the machine the JIT Compiler compiles the
> dll. The second time your run it, it is already compiled; it looks to see
[quoted text clipped - 25 lines]
> > Many Regards
> > Jack
Sherif ElMetainy - 04 Jan 2005 18:38 GMT
Hello
Most probably your assembly is cached in memory by windows the first time,
and in the later runs, it is loaded from memory. You can try this any
application (Outlook for example) and watch the hard disk led if first and
second run, you will notice a difference.
Best regards,
Sherif
> Dear All,
> I have developed a client .net application that gets launched via
[quoted text clipped - 17 lines]
> Many Regards
> Jack