I get a
Unhandled exception at 0x00451781 in v8runner.exe: 0xC0000005: Access
violation reading location 0x00000017."

on this line      Top::global_context()->function_cache()->GetElement
(serial_number);" in execution.cc

It only happens when I call point_templ->NewInstance();

That documentation is useless

v8::Handle<v8::ObjectTemplate> point_templ = v8::ObjectTemplate::New
();
point_templ->SetInternalFieldCount(1);
Point* p = new Point(0, 0, 0);//my point has x,y,z
v8::Local<v8::Object> obj = point_templ->NewInstance();//if i remove
here and the line bellow. it does not crash
obj->SetInternalField(0, v8::External::New(p));

I have tried this every which way based on the documentation. What
little documentation there seems rather useless ><. (i downloaded the
new trunk and still same thing)
--~--~---------~--~----~------------~-------~--~----~
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to