[Coin-discuss] CoinModel

Vitor Barbosa vitorbarbosa at dps.uminho.pt
Tue Aug 30 13:27:00 EDT 2005


I'm using the CoinModel class and when I try to delete rows and pack
(packRows) them i get an "Assertion failed" error.

 

When debugging, at line 1141 of CoinModel.cpp the variable links_  as value
3 so the condition ((links_&1)!=0) of the if is true:

 

    if ((links_&1)!=0) {

      rowList_ = CoinModelLinkedList();

      createList(1);

    }

 

When the method createList(1) is called, (links_&1) ==1 and the assert fails

 

CoinModel::createList(int type) const

{

  type_=2;

  if (type==1) {

    assert ((links_&1)==0);

 

What means the value of links_?

 

When i remove the assert it works fine. Is this assert OK?

 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/coin-discuss/attachments/20050830/faca2a7d/attachment.html>


More information about the Coin-discuss mailing list