<div dir="ltr"><div>Hi, I am using CLP to solve an LP with  <br><br></div><div>   rowNum =  1002 and columNum = 6202  and totalElementNum = 6,214,404<br></div><div><br>In   <b>CoinCopyN</b> (register const T* from, const int size, register T* to) called from CoinMemcpyN(ind,numels,index_), which is called from  gutsOfOpEqual(colordered, minor, major, numels, elem, ind, start, len);<br><br></div><div>I got an exception: <br></div><div><b><br>       Unhandled exception at 0x00217A52 in MyApp.exe: 0xC0000005: Access  violation reading location 0x1BBEFFFC.</b><br><br></div><div>The exception poped up at <br><br>    <b>case 2:         *--downto = *--downfrom;</b></div><div><br>template <class T> inline void<br><b>CoinCopyN</b> (register const T* from, const int size, register T* to)<br>{<br>    if (size == 0 || from == to)<br>    return;<br><br>#ifndef NDEBUG<br>    if (size < 0)<br>    throw CoinError("trying to copy negative number of entries",<br>            "CoinCopyN", "");<br>#endif<br><br>    register int n = (size + 7) / 8;  <b>// size = 6214404</b><br>    if (to > from) {<br>    register const T* downfrom = from + size;<br>    register T* downto = to + size;<br>    // Use Duff's device to copy<br>    switch (size % 8) {<br>    case 0: do{     *--downto = *--downfrom;<br>    case 7:         *--downto = *--downfrom;<br>    case 6:         *--downto = *--downfrom;<br>    case 5:         *--downto = *--downfrom;<br>    case 4:         *--downto = *--downfrom;<br>    case 3:         *--downto = *--downfrom;<br><b>    case 2:         *--downto = *--downfrom;  // exception poped up here,</b><br>    case 1:         *--downto = *--downfrom;<br>    }while(--n>0);<br>    }<br><br></div><div>I do not understand why this happed ? <br><br></div><div>I have used CLP to solve some large benchmark Lp models without problems. <br><br></div><div>Any help would be appreciated. <br></div><div><br></div><div>thanks!<br></div></div>