Sunday, 30 June 2019

IActiveScriptParse32::ParseScriptText Memory Leak

Has anybody ever faced a memory leak problem with IActiveScriptParse32::ParseScriptText when using it in C#? I need a ScriptEngine that is able to parse JavaScript-Code. (Everything works fine, except the used memory)

The problem is, that the longer my passed JavaScript-Code is, the more unmanaged memory is allocated by the function "ParseScriptText".

I have no idea how to free the allocated space. I actually already run Marshal.ReleaseComObject(parse32) after parsing my script but somehow the used memory does not go down anymore.



from IActiveScriptParse32::ParseScriptText Memory Leak

No comments:

Post a Comment