pgerard
Newcomer
Hello,
I have developped an application which let the user define its own mathematical functions using a subset of VB.Net. I then use Codedom to compile each function into its own assembly. When the user launch a calculation, I load the needed assemblys and use the defined methods.
Everything works fine as long as the user don't try to recompile a function (an assembly) which has been loaded in memory.
I have not been able to find a way to "unload" an Assembly. As of now, the user has to quit the application and relaunch it (not the optimal solution...) .
Does anyone has an idea on how to solve this issue?
Thanks for your help
Pierre
PS : To solve this, the only thing I can think of is to launch another application which would load the assemblies, do the calculations and then communicate the results to the original app, but I have not been able to find any exemple on how to do that so far.
I have developped an application which let the user define its own mathematical functions using a subset of VB.Net. I then use Codedom to compile each function into its own assembly. When the user launch a calculation, I load the needed assemblys and use the defined methods.
Everything works fine as long as the user don't try to recompile a function (an assembly) which has been loaded in memory.
I have not been able to find a way to "unload" an Assembly. As of now, the user has to quit the application and relaunch it (not the optimal solution...) .
Does anyone has an idea on how to solve this issue?
Thanks for your help
Pierre
PS : To solve this, the only thing I can think of is to launch another application which would load the assemblies, do the calculations and then communicate the results to the original app, but I have not been able to find any exemple on how to do that so far.