On Wed, Jul 6, 2011 at 4:09 PM, HdcDst <[email protected]> wrote: > ...
> 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? > i don't know if this is the problem, but i have never used ObjectTemplate::NewInstance(), but Function::NewInstance() (using the constructor Function). That has always worked well for me as long as i remember to use Arguments::IsConstructorCall() in the ctor impl to avoid a assertion/crash case when the user forgets the 'new' operator. :-? This _might_ be helpful as a studying point: http://code.google.com/p/v8-juice/source/browse/convert/include/v8/convert/ClassCreator.hpp -- ----- stephan beal http://wanderinghorse.net/home/stephan/ -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users
