On Tue, Jun 1, 2010 at 5:53 PM, Vyacheslav Egorov <[email protected]> wrote:
>>> I should be able to do that tonight.  How do I enable the verify heap
>>> flag?
> Pass "--verify-heap" to V8::SetFlagsFromString() method.

Thanks.  I'll do that.

> BTW could you post code you use to initialise m_hArray field?

Certainly.

CLVV8ArrayPtr CLVV8Array::Create(CLocustPool* lpObjPool,
                Handle<Context> hContext, Handle<Array> hArray)
{
        v8::Locker locker;

        if(SISNULLARG(lpObjPool)) {
                return NULL;
        }
        if(SCHECKFAILED(!hContext.IsEmpty())) {
                return NULL;
        }
        if(SCHECKFAILED(!hArray.IsEmpty())) {
                return NULL;
        }
        
        HandleScope objHandleScope;
        
        CLVV8ArrayPtr lvWrapper = lpObjPool->CreateValue<CLVV8Array>();
        if(SCREATEFAILED(lvWrapper)) {
                return NULL;
        }
        
        lvWrapper->m_hContext = Persistent<Context>::New(hContext);
        if(SCHECKFAILED(!lvWrapper->m_hContext.IsEmpty())) {
                return NULL;
        }

        lvWrapper->m_hArray = Persistent<Array>::New(hArray);
        if(SCHECKFAILED(!lvWrapper->m_hArray.IsEmpty())) {
                return NULL;
        }
                
        return lvWrapper;
}


> --
> Vyacheslav Egorov
>
>
> On Tue, Jun 1, 2010 at 11:31 PM, Matt Seegmiller <[email protected]>
> wrote:
>>
>> On Tue, Jun 1, 2010 at 5:24 PM, Vyacheslav Egorov <[email protected]>
>> wrote:
>> > Hi Matt,
>> > So if I am reading you correctly crashes started after you switched
>> > to r4756, I am right?
>>
>> No.  I actually was getting the crash with ~r4400 (I don't remember
>> exactly what revision I updated from, but it was early April) and
>> updated yesterday to make sure it still happened with the latest trunk
>> before emailing.
>>
>> > If it is possible try running your application with debug version of V8
>> > and
>> > verify-heap flag enabled.
>>
>> I should be able to do that tonight.  How do I enable the verify heap
>> flag?
>>
>> mat
>>
>> --
>> v8-users mailing list
>> [email protected]
>> http://groups.google.com/group/v8-users
>
> --
> v8-users mailing list
> [email protected]
> http://groups.google.com/group/v8-users

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

Reply via email to