http://groups.google.com/group/v8-users/browse_thread/thread/9effc94911772167

http://groups.google.com/group/v8-users/browse_thread/thread/4dd5af4fff20e68a

Pete Gontier <http://pete.gontier.org/>



On Oct 22, 2008, at 8:00 PM, Mark Wang wrote:

>
> 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
v8-users@googlegroups.com
http://groups.google.com/group/v8-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to