Hi, Stephan,
It seems possible that v8::IsDead() returns true before main() exit.
Please check the following comments in v8.h
/**
* Check if V8 is dead and therefore unusable. This is the case
after
* fatal errors such as out-of-memory situations.
*/
static bool IsDead();
From the comments, it looks like IsDead() will return true in
situation of fatal exception like OOM(out of memory).
I think we can catch OOM exception in main() using C++ SEH.
About whether we can re-initialize v8 or not, I now agree with you
that we can't do it.
Sincerely~
Xiang
On Nov 24, 6:27 pm, Stephan Beal <
sgb...@googlemail.com> wrote: