Some relevant context is missing from your example.
So I can only guess: are you executing within a Context::Scope?
What is the point of "global"? It smells as if you meant to
instantiate a context.
You may want to build against the v8 debug version; it may give better
errors (http://code.google.com/apis/v8/build.html).
Matthias
...
11: obj->SetInternalField(0, External::New(p));
But when at line 10: "Local<Object> obj = point_templ-
>NewInstance();"
The Program stops with a memory access error.
Does anyone has an Idea, what's wrong in my code?
The problem was, that I tried to instantiat a template before I set up
a context scope.
Setting up a context, getting the global object instead the global
template, and then setting
the point_object as a property of the global object worked
that class is _almost_ "standalone" - its only dependencies are v8 and the STL except for two internal uses of a StringBuffer class (which works like a std::ostringstream but also handles v8 types). i'll make a note of factoring out that dep so that others can steal that class for use independent of the lib it lives in.