[CoinMp] memory leak problem with COINMP

Stuart Mitchell s.mitchell at auckland.ac.nz
Wed Oct 28 20:20:54 EDT 2009


hey there is a version 1.4.0 that fixes this problem

Finally!!!

There are still the other issues that we identified.

So I am building a patch for this as we speak

Stu


Rod Frowd wrote:
> Ming:
> 
> I posted this several years ago:
> 
> "I have been running the CBC MIP repetitively from CoinMP.dll and it 
> seems to be leaking memory and growing in size.
> 
> I have added a delete of the cbc object into CoinMP.cpp as follows. It 
> looks like this will also delete the cut generator objects created as 
> its destructor includes deletion of the cut generators.
> 
> SOLVAPI int CoinUnloadProblem(HPROB hProb)
> {
>   PCOIN pCoin = (PCOIN)hProb;
>      if (pCoin) {
>        delete pCoin->clp;
>        if (pCoin->RowLower) free(pCoin->RowLower);
>        if (pCoin->RowUpper) free(pCoin->RowUpper);
>        if (pCoin->IsInt) free(pCoin->IsInt);
>        delete pCoin->cbc;
>        pCoin->cbc = NULL;
>    }
>    free(pCoin);
>    pCoin = NULL;
>    return SOLV_SUCCESS;
> }
> 
> "
> 
> And I think Stuart Mitchell from NZ also raised a ticket about this.
> 
> Rod
> 
> ming lu wrote:
>>> Hi All,
>>>
>>> It looks that CoinUnloadProblem doesn't release resource correctly.
>>> The cbc was not released, this causes a huge memory leak problem. Also
>>> following members are not explicitly released:
>>>
>>>                                ClpSolve *clp_presolve;
>>>                                OsiClpSolverInterface *osi;
>>>                                CBMessageHandler *msghandler;
>>>                                CBIterHandler *iterhandler;
>>>                                CBNodeHandler *nodehandler;
>>>
>>>                                CglProbing *probing;
>>>                                CglGomory *gomory;
>>>                                CglKnapsackCover *knapsack;
>>>                                CglOddHole *oddhole;
>>>                                CglClique *clique;
>>>                                CglLiftAndProject *liftpro;
>>>                                CglSimpleRounding *rounding;
>>>
>>> Could someone take a look?
>>>
>>> Thanks,
>>> Ming
>>>
>>>     
>>
>>
>> _______________________________________________
>> CoinMp mailing list
>> CoinMp at list.coin-or.org
>> http://list.coin-or.org/mailman/listinfo/coinmp
>>
>>   
> _______________________________________________
> CoinMp mailing list
> CoinMp at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/coinmp

-- 
___________________________________
Dr Stuart Mitchell
Research Fellow
Light Metals Research Centre (LMRC)
University of Auckland
Private Bag 92019
Auckland
New Zealand

Ph (wk)  +64 9 3737599 ext 84867
    (ddi) +64 9 9234867
    (fax) +64 9 3737925
    (mb)  +64 21 441331
___________________________________



More information about the CoinMp mailing list