Hi Jacob,
On 7/10/2008, at 12:24 PM, Jacob Burbach wrote: > > I've cleaned up and fixed the example a bit, based on what I've > learned and > what I've read on the list. > > CHANGES: > Call the ClearWeak method of the Persistant object in > Point_Destroy. This is > done in the v8 tests, so I'll assume they know what they are > doing ;-) > > Added a getLength method to Point, to demonstrate how methods can be > added/wrapped > > Pass the C++ object as parameter to the MakeWeak method for use in > Point_Destroy, as mentioned in the group, and is also done in the > v8 tests.. > > Delete the C++ object via the parameter to MakeWeak,rather than > retrieving > the object from the internal field, as mention in the group, and is > also > done in the v8 tests.. > > Added a global counter thats incremented/decremented when object is > created/destroyed. Will almost certainly show uncollected objects at > exit... > > You can find latest here: http://home.cfl.rr.com/filedump/v8test.zip > > > --~--~---------~--~----~------------~-------~--~----~ v8-users mailing list [email protected] http://groups.google.com/group/v8-users -~----------~----~----~----~------~----~------~--~---
