Ignore:
Timestamp:
Nov 21, 2014 5:57:22 AM (5 years ago)
Author:
forrest
Message:

try and improve memory leaks (and clean up Clp pthread build problem)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cbc/src/CbcNodeInfo.cpp

    r1943 r2097  
    6262{
    6363#ifdef CHECK_NODE
    64     printf("CbcNodeInfo %x Constructor\n", this);
     64    printf("CbcNodeInfo %p Constructor\n", this);
    6565#endif
    6666}
     
    108108{
    109109#ifdef CHECK_NODE
    110     printf("CbcNodeInfo %x Constructor from parent %x\n", this, parent_);
     110    printf("CbcNodeInfo %p Constructor from parent %p\n", this, parent_);
    111111#endif
    112112    //setParentBasedData();
     
    129129{
    130130#ifdef CHECK_NODE
    131     printf("CbcNodeInfo %x Copy constructor\n", this);
     131    printf("CbcNodeInfo %p Copy constructor\n", this);
    132132#endif
    133133    if (numberCuts_) {
     
    164164{
    165165#ifdef CHECK_NODE
    166     printf("CbcNodeInfo %x Constructor from parent %x\n", this, parent_);
     166    printf("CbcNodeInfo %p Constructor from parent %p\n", this, parent_);
    167167#endif
    168168    //setParentBasedData();
     
    177177{
    178178#ifdef CHECK_NODE
    179     printf("CbcNodeInfo %x Destructor parent %x\n", this, parent_);
     179    printf("CbcNodeInfo %p Destructor parent %p\n", this, parent_);
     180    printf("cuts %p - number %d\n",cuts_,numberCuts_);
    180181#endif
    181182
     
    219220            int number = cuts_[i]->decrement(changeThis);
    220221            if (!number) {
    221                 //printf("info %x del cut %d %x\n",this,i,cuts_[i]);
     222                //printf("info %p del cut %d %p\n",this,i,cuts_[i]);
    222223#ifndef GLOBAL_CUTS_JUST_POINTERS
    223224                delete cuts_[i];
     
    398399            CbcCountRowCut * thisCut = cut[i];
    399400            thisCut->setInfo(this, numberCuts_);
    400             //printf("info %x cut %d %x\n",this,i,thisCut);
     401            //printf("info %p cut %d %p\n",this,i,thisCut);
    401402            thisCut->increment(numberToBranchOn);
    402403            cuts_[numberCuts_++] = thisCut;
Note: See TracChangeset for help on using the changeset viewer.