<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->clp) delete pCbc->clp;
444         if (pCbc->clp_presolve) delete pCbc->clp_presolve;
445         <font color="#ff0000"> //if (pCbc->osi) delete pCbc->osi;</font>
446         if (pCbc->cbc) delete pCbc->cbc;
447        
448         if (pCbc->msghandler) delete pCbc->msghandler;
449         if (pCbc->iterhandler) delete pCbc->iterhandler;
450         if (pCbc->nodehandler) delete pCbc->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> Hi Jean-Philippe,
Miles> CbcCreateSolverObject() is part of CoinMP, which is a separate
Miles> project from Cbc. I would suggest that you report the issue to the
Miles> developer of CoinMP, but it seems like it was already reported more
Miles> than two years ago:
Miles> <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> Anyway, you may be interested in the new C interface to Cbc which is
Miles> under development and is soon to be released as part of Cbc
Miles> proper. It's designed to be much more lightweight than
Miles> CoinMP. Currently it's available in svn trunk:
Miles> <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> (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>