Hello,
just to close this thread, I was able to find a solution, which does not produce a memory leak:
Instead of using AddHostObject, I used ScriptEngines Script property to hand over data to the script. In the script I return the data back and now use Evaluate with discard: true.
Thank you for your help!
just to close this thread, I was able to find a solution, which does not produce a memory leak:
Instead of using AddHostObject, I used ScriptEngines Script property to hand over data to the script. In the script I return the data back and now use Evaluate with discard: true.
Thank you for your help!