It will always recompile - for example last time it ran you may have had alot of other stuff running so the machine was under memory pressure, so the JIT compiled for smaller code. This time maybe you don't have memory pressure and so it compiles with the emphasis on speed (I'm not sure if it actually does this optimization but its an example of the possibiliites).
The only way to prevent the recompilation is to use NGEN but even then there are situaltions where run runtime will fall back to JIT. If any assemblies it depends on change then is goes back to JIT for it may have inlined one of their methods in the NGEN'd version.
Regards
Richard Blewett - DevelopMentor
http://staff.develop.com/richardb/weblog
it...why does it again go for compliation...
Well, you might be using a different CPU from last time >you ran it.
The Application is running on the same machine and has only one
CPU...and is running via No Touch deployment...
but no new dlls were deployed...Can I control which CPU my application
uses?
Or maybe it's using a newer version of the framework.
No...I did not change any dll...is this a problem with only No touch
deployment or will even full client deployment application compile the
next time it is started...
Or maybe you don't want to waste disk space with code >that can easily
(and reasonably quickly) be generated on >the fly.
I swear I have not done anything like that...;-) only thing is that my
application was running via No Touch Deployment via a stub exe...and no
new dll was deployed the second time it was launched...
Thanks & Regards
Jack
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (
http://www.grisoft.com).
Version: 6.0.771 / Virus Database: 518 - Release Date: 28/09/2004
[microsoft.public.dotnet.framework]