Hi, I am creating v8 script engine in thread and executing script. a list contains script files which are executed in thread one by one. when more number script files executed "Attempted to read or write protected memory. This is often an indication that other memory is corrupt." exception is thrown and application gets crashed.
Praveen
public async Task PlayProject(string projectData)
{
var engineInstance= new V8ScriptEngine();
jsScript = File.ReadAllText(projectData);
Task.Factory.StartNew(() => {
var compiledScript = engineInstance.Compile(jsScript);
engineInstance.Execute(compiledScript);
});
}
ThanksPraveen