This project has moved. For the latest updates, please go here.

Duplicate Error throw in JScriptEngine

Dec 10, 2013 at 12:53 AM
Edited Dec 10, 2013 at 12:54 AM
I initial a .net runtime in a native c++ program. Create two JScript engine in this .net runtime, this two engine is created in individual appdomain. When the engine throw out a exception, the c++ side will receive a _com_error. That's fine.
But the weird part is ,as long as the first engine throw out a exception, if the secone one also throw out a exception, I found the exception is same as the first one! Even I unload the first engine and appdomain, the second engine keep throw out the first engine's exception. What a ghost exception!
I did another experiments. As long as the exception is not throwing out to c++ side (handled inside .NET Runtime), the problem is gone.
V8 Engine doesn't have this problem.
Dec 10, 2013 at 2:16 AM
Hi bonntom,

Wow, that sounds like an interesting issue, and we'd love to try to debug it, but to do that we need a reproducible case. Your scenario is quite unusual and clearly very complex, so it may not be easy for us to replicate. Would you consider sharing (a portion of) your code to speed up the process?