Changeset 16833 for trunk/FACT++/src


Ignore:
Timestamp:
06/14/13 10:52:43 (11 years ago)
Author:
tbretz
Message:
The disposed handle fInterruptCallback must also be cleared, otherwise it might still be accessible. Removed a stray debug output.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/InterpreterV8.cc

    r16802 r16833  
    8686// script termination.
    8787//
    88 
     88// Here is another good reference for v8, also containing some
     89// good explanations for the meaning of handles, persistent handles
     90// and weak handles: http://create.tpsitulsa.com/wiki/V8_Cookbook
     91//
    8992// ==========================================================================
    9093//                            Simple interface
     
    15701573    {
    15711574        fInterruptCallback.Dispose();
     1575        fInterruptCallback.Clear();
    15721576        return Undefined();
    15731577    }
     
    15991603
    16001604    for (auto it=data.begin(); it!=data.end(); it++)
    1601     {
    1602         cout << "|" << it->first << "=" << it->second << "|" << endl;
    16031605        arr->Set(String::New(it->first.c_str()), String::New(it->second.c_str()));
    1604     }
    16051606
    16061607    Handle<Value> args[] = { irq_str, arr, date, usr_str };
     
    26632664    // Now we can dispose the persistent interrupt handler
    26642665    fInterruptCallback.Dispose();
     2666    fInterruptCallback.Clear();
    26652667
    26662668    // Now we can dispose all persistent handles from reverse maps
Note: See TracChangeset for help on using the changeset viewer.