Hi all,
If I have an object foo which is a wrapper for a C++ object, and I
define a new object callback which involves allocating a new C++
object, eg:
Handle<FunctionTemplate> footemplate =
FunctionTemplate::New(NewFooCallback);
global->Set(String::New("foo"), footemplate);
and in NewFooCallback:
Foo *f = new Foo();
is there anyone for us to be notified when a specific object instance
is freed in garbage collection, and it's OK for us to free f?
Thanks in advance,
Mark
--~--~---------~--~----~------------~-------~--~----~
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
-~----------~----~----~----~------~----~------~--~---