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

New Post: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

$
0
0
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.
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);     
       });    
}
Thanks
Praveen

Viewing all articles
Browse latest Browse all 2297

Trending Articles