In version 5.4.7 and 5.4.8 there's still a memory leak related to script evaluations with the VBScriptEngine.
I've attached a test project, where 1000 predefined equations can be evaluated with VBScriptEngine or with the V8 engine. When re-evaluating the equations with V8 engine, the used process memory keeps stable, but not with the VBScriptEnginge. It seems to be an unmanaged memory leak.
To run the attached test project properly, ClearScript has to be added via nuget first.
Comments: Hi, now, I've tested my test application under a fresh installed virtual machine with Windows 7x32 and in addition with Windows 10 x64 and in both machines I get now the same result as you - no memory leak at all. I guess that the problem on my development machine is located as you already described. So this issue isn't one of ClearScript. Nervertheless, thank you very much for your efforts!
I've attached a test project, where 1000 predefined equations can be evaluated with VBScriptEngine or with the V8 engine. When re-evaluating the equations with V8 engine, the used process memory keeps stable, but not with the VBScriptEnginge. It seems to be an unmanaged memory leak.
To run the attached test project properly, ClearScript has to be added via nuget first.
Comments: Hi, now, I've tested my test application under a fresh installed virtual machine with Windows 7x32 and in addition with Windows 10 x64 and in both machines I get now the same result as you - no memory leak at all. I guess that the problem on my development machine is located as you already described. So this issue isn't one of ClearScript. Nervertheless, thank you very much for your efforts!