Issue 127: CHECK(state_ == DESTROYED) failed
http://code.google.com/p/v8/issues/detail?id=127

Comment #6 by [EMAIL PROTECTED]:
Victor,

I could not get access to your code at the above URL.  However, from your
description, it seems that you are calling Dispose on a global handle, then  
you are
calling MakeWeak or ClearWeak on the same handle, and then at some later  
point you
are getting your error when attempting to create a new global handle.

After calling Dispose on a global handle, you are not allowed to use it  
anymore.
Basically, Dispose is telling V8 that it can reuse the memory used for the  
global
handle.  Using a disposed global handle corresponds to messing with  
deallocated
memory.

You are getting the error very late, so I am going to add extra asserts to  
the global
handle code so you hit an assertion if you try to call MakeWeak or  
ClearWeak on a
disposed handle.  Hopefully, this will make it easier to track these issues  
down.

For your code, it seems that what you are doing in comment 5 is the right  
thing to
do.  You could do the same by doing:

   connections[fd].Dispose();
   connections[fd].Clear();




Issue attribute updates:
        Status: Fixed

-- 
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

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

Reply via email to