Hi all,<div><br><div>I am new to ADOL-C. I have recently downloaded and installed it on my PC.</div><div>I used MSVC++ 2010 and all the steps described in the documentation and Readme files to build the packages (both ADOL-C and ColPack).</div>
<div>Both the nosparse and sparse version of ADOLC have been build successfully (I think).</div><div><br></div><div>Then I tried to test some of the examples provided in the &quot;additional_examples&quot; directory. I am very interested </div>
<div>in calculating sparse Jacobians so I used tried the file &quot;sparse_jacobian.cpp&quot; in the directory &quot;sparse&quot;.</div><div><br></div><div>I wanted to try independently, so I created a new project and I copy-pasted the code from sparse_jacobian.cpp</div>
<div>to the file: &quot;my_sparse_jacobian.cpp&quot; The project name is adolcFinalSparse.</div><div><br></div><div>I have successfully built the project. But when I run it the program aborts.</div><div>This is what message I get:</div>
<div><br></div><div>-=-=-=-=-</div><div>Debug Assertion Failed!</div><div>Program: ...dio 2010\Projects\adolcFinalSparse\Debug\adolcFinalSparse.exe</div><div>File: f:\dd\vctools\crt_bld\self_x86\crt\src\dbgheap.c</div><div>
Line: 1322</div><div>Expression: _CrtIsValidHeapPointer(pUserData)</div><div>For information on how your program can cause an assertion .......</div><div>Abort -- Retry -- Ignore</div><div>-=-=-=-=-</div><div><br></div><div>
The problem arises as soon as the memory for the matrix &quot;rind&quot; is freed for the first time (i.e., free(rind)).</div><div><br></div><div>I suspect that it may be something trivial (e.g., I do not set up something correctly).</div>
<div>Any suggestions on how to resolve this issue will be very welcome. </div><div><br></div><div>Cheers,</div><div>John</div></div>