We have an application that generates .NET assembly DLLs at runtime and
executes them. It normally generates the assembly DLL once per user task and
any time the same user task is done again it simply loads the already
existing DLL and executes it.

Is there any chance you could switch to lightweight code generation
using DynamicMethod. This would completely eliminate the DLL as a
source of problems since the methods are generated in-memory.

You can do almost anything with LCG, check out my DynamicComparer[0],
DynamicProcedure and DynamicFunction[1] classes for examples of what
you can do at a fine-grained level.  Don't miss Haibo Luo's awesome
debugger visualizer[2]

[0] 
http://musingmarc.blogspot.com/2006/03/extending-dynamic-sorting-of-objects.html
(you can follow the links for further details.

[1] 
http://musingmarc.blogspot.com/2006/07/power-of-generics-compels-you-power-of.html

[2] 
http://musingmarc.blogspot.com/2006/02/lightweight-code-generation-is-fun.html

--
"You hide yourself with sanctimony, I hide myself with narcissism."
--T-Bone Burnett

Marc C. Brooks
http://musingmarc.blogspot.com

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to