On Sun, Sep 6, 2009 at 7:13 PM, Zhong xiang <[email protected]> wrote:

> You should probably use Weak persistent handle. With weak persistent
> handle, you will be notified when the wrapper handle is reclaimed.


A slight expansion on that: you'll be notified IF the wrapper handle is
reclaimed. Do not be confused if some of your dtors never get called - that
was a topic of some annoyance when i started using v8, and can be
problematic when working with types which must, for reasons of correctness,
be destructed (e.g. db of file handles).

-- 
----- stephan beal
http://wanderinghorse.net/home/stephan/

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

Reply via email to