Quantcast
Channel: ClearScript
Viewing all articles
Browse latest Browse all 2297

New Post: Reuse script engine instance

0
0
Dear Sirs,
I wonder what would be your advice on how to implement reuse of JScriptEngine instance or is it at all advisable.
Given that assemblies, types and libraries of helper scripts are all the same between two sample scripts and are all loaded, is it possible to unload first script with its host objects and load the second with its own set of host objects.
Immediate issue for me was not being able to use AddHostObject() to set new object in case when name of host objects match between scripts.

Please advise.

Yours
MW

Viewing all articles
Browse latest Browse all 2297

Latest Images

Trending Articles





Latest Images