<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body style="background-color: rgb(255, 255, 255); color: rgb(0, 0,
    0);" bgcolor="#FFFFFF" text="#000000">
    If you enable that delete of the osi object in the CoinCbc.cpp<br>
    <pre>

it should not leak memory. I could not get an answer from anyone why this line was commented out.

void CbcClearSolverObject(HCBC hCbc)
438        {
439                PCBC pCbc = (PCBC)hCbc;
440                if (!pCbc) {
441                        return;
442                }
443                if (pCbc-&gt;clp) delete pCbc-&gt;clp;
444                if (pCbc-&gt;clp_presolve) delete pCbc-&gt;clp_presolve;
445               <font color="#ff0000"> //if (pCbc-&gt;osi) delete pCbc-&gt;osi;</font>
446                if (pCbc-&gt;cbc) delete pCbc-&gt;cbc;
447        
448                if (pCbc-&gt;msghandler)   delete pCbc-&gt;msghandler;
449                if (pCbc-&gt;iterhandler)  delete pCbc-&gt;iterhandler;
450                if (pCbc-&gt;nodehandler)  delete pCbc-&gt;nodehandler;
451        
452                free(pCbc);
453        }
</pre>
    <div class="moz-cite-prefix">On 11/07/2014 6:24 PM, Jean-Philippe
      Chancelier wrote:<br>
    </div>
    <blockquote cite="mid:20140711.102407.243431311.jpc@cermics.enpc.fr"
      type="cite">
      <pre wrap="">
    Miles&gt; Hi Jean-Philippe,
    Miles&gt; CbcCreateSolverObject() is part of CoinMP, which is a separate
    Miles&gt; project from Cbc. I would suggest that you report the issue to the
    Miles&gt; developer of CoinMP, but it seems like it was already reported more
    Miles&gt; than two years ago:
    Miles&gt; <a class="moz-txt-link-freetext" href="http://list.coin-or.org/pipermail/coinmp/2012-February/000029.html">http://list.coin-or.org/pipermail/coinmp/2012-February/000029.html</a>.

    Miles&gt; Anyway, you may be interested in the new C interface to Cbc which is
    Miles&gt; under development and is soon to be released as part of Cbc
    Miles&gt; proper. It's designed to be much more lightweight than
    Miles&gt; CoinMP. Currently it's available in svn trunk:
    Miles&gt; <a class="moz-txt-link-freetext" href="https://projects.coin-or.org/Cbc/browser/trunk/Cbc/src/Cbc_C_Interface.h">https://projects.coin-or.org/Cbc/browser/trunk/Cbc/src/Cbc_C_Interface.h</a>.
    Miles&gt; (Feedback would be greatly appreciated!)

    Hi Miles,
    I'll take a look at this new interface. 
    My aim was to add wrappers to use clp and cbc from nsp, 
    a matlab like software. It works fo LP and QP using clp 
    c-interface and for MILP using coinMP interface (found that 
    direct call to cbc was too complex for me). 
    Regards 
    jpc

    
    

     
    
    




    
_______________________________________________
Cbc mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Cbc@list.coin-or.org">Cbc@list.coin-or.org</a>
<a class="moz-txt-link-freetext" href="http://list.coin-or.org/mailman/listinfo/cbc">http://list.coin-or.org/mailman/listinfo/cbc</a>

</pre>
    </blockquote>
    <br>
  
<br /><br />
<hr style='border:none; color:#909090; background-color:#B0B0B0; height: 1px; width: 99%;' />
<table style='border-collapse:collapse;border:none;'>
        <tr>
                <td style='border:none;padding:0px 15px 0px 8px'>
                        <a href="http://www.avast.com/">
                                <img border=0 src="http://static.avast.com/emails/avast-mail-stamp.png" />
                        </a>
                </td>
                <td>
                        <p style='color:#3d4d5a; font-family:"Calibri","Verdana","Arial","Helvetica"; font-size:12pt;'>
                                This email is free from viruses and malware because <a href="http://www.avast.com/">avast! Antivirus</a> protection is active.
                        </p>
                </td>
        </tr>
</table>
<br />
</body>
</html>