> Do you have a HandleScope in effect when this is done?
>
>       HandleScope hscope;
>       Handle<Object> global = Object::New();
>
> --
> Bryan White

Yes, HandleScope is the first line in function.
You can try to test a simple case:

#include "v8.h"
using namespace v8;

void main()
{
  HandleScope handle_scope;
  Handle<Object> obj = Object::New(); // ---------> assert failed.
  Persistent<Context> context = Context::New(0,
Handle<ObjectTemplate>(), obj);
  if (!context.IsEmpty())
  {
    context.Dispose();
    context.Clear();
  }
  return;
}
--~--~---------~--~----~------------~-------~--~----~
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to