On Sat, Jun 1, 2013 at 8:49 PM, [email protected] <[email protected]> wrote:
> Hello,
>
> i try to wrap an object and everytime i end up in a segmentation fault (in
> line 56).
>
> https://gist.github.com/timglabisch/22aa198c360335650fca#file-gistfile1-cpp-L56
>
> here is my gdb output as well:
>
>>> Breakpoint 1, main () at /home/dev/proj/cpp/v8example/main.cpp:55
>>>
>>> 55  Foo* f = new Foo();
>>>
>>> (gdb) n
>>>
>>> 56  Local<Object> obj = point_templ->GetFunction()->NewInstance();
>>>
>>> (gdb)
>>>
>>>
>>> Program received signal SIGSEGV, Segmentation fault.
>>>
>>> 0x00000000006af4a5 in v8::internal::Isolate::native_context() ()
>>>
>>> (gdb)
>
>
>
> i am using version 3.19.7.
>
> thanks for any help.

Call V8::Initialize() and Context::New() before you do anything else.

-- 
-- 
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/groups/opt_out.


Reply via email to