Thank you for the example.
I also use:
           ........
        Persistent<Object> self = Persistent<Object>::New(args.Holder());
        self.MakeWeak(0, Point_Destroy);

        self->SetInternalField(0, External::New(p));
        return self;
}
void Point_Destroy(Persistent<Object> self, void* parameter)
{
        Local<External> external = Local<External>::Cast(self-
>GetInternalField(0));
        delete static_cast<Point*>(external->Value());
}

but the "Point_Destroy" Function is never called. So when should it be
called in your example?

Thanks
bg


--~--~---------~--~----~------------~-------~--~----~
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to