Status: New Owner: ---- New issue 365 by ofsevensins: point_templ->NewInstance() causes runtime error http://code.google.com/p/v8/issues/detail?id=365
I get a runtime error 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(); Here is one of the many ways I have tried to get this working 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) -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings --~--~---------~--~----~------------~-------~--~----~ v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev -~----------~----~----~----~------~----~------~--~---
