Hello everyone, I have a working v8 engine embedded in an android application. I'm using JNI to call c++ methods from java. It all works great until i try to handle an uncaught java exception.
I throw a runtime exception in java, then the default handler (*setDefaultUncaughtExceptionHandler <http://www.tutorialspoint.com/java/lang/thread_setdefaultuncaughtexceptionhandler.htm>*) catches it, and i pass the exception as a string to a c++ class with name X. Then X having the passed string tries to convert it to a v8 string using the v8. The exact function that seems to not be working is "String::NewFromUtf8(isolate, (const char *)data, String::kNormalString, length);". *I've used that particular function and it has worked properly in other parts of the application*, so my only guess is that the v8 is in some invalid state when i try to use that function and convert a c++ string or a java string into Local<String> (v8 string). At first i thought the v8 is destroyed as a resource, *before *the app is terminated, but that's not the case. The app crashes as expected, because of a runtime exception. -- -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
