Hi,
I'm embedding v8 with my application and I wanted allow the
application to load extension at run time, but for some reason the
application core dump when function in the shared object create local
instance of HandleScope.
in the main application I have something like that
void *handle = dlopen(filename, RTLD_NOW | RTLD_GLOBAL);
setup_t setup = reinterpret_cast<setup_t>(dlsym(handle, "setup"));
v8::Handle<Value> setup();
and in the shared object i have something like this
Handle<Value> setup()
{
HandleScope handle_scope; <========== The code seems to crash
here
printf("Test .......\n");
......
......
return SomeValue;
}
If I replace everything with printf("HELLO\n") I see the message in
the console, but as some as I but the code it core dump before I see
Test message, so the question is there anything needs to be done for
V8 engine.
I have been using this king for code for my application to add
extensions and it allows work.
Thanks
--~--~---------~--~----~------------~-------~--~----~
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
-~----------~----~----~----~------~----~------~--~---