<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta content="text/html; charset=utf-8" http-equiv="Content-Type"></head>Hello, <br>
<br>
could you send me your copied source file and your project/solution file for testing. I am currently away from the machine with my visual studio, so I'll be able to get back to you next week at the earliest.<br>
<br>
Regards.<br>
-- <br>
Dr. Kshitij Kulshreshtha<br>
<br>
Sent via Mobile Phone.<br><br><div class="gmail_quote">john capeman <john.capeman@gmail.com> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
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 "additional_examples" directory. I am very interested </div>
<div>in calculating sparse Jacobians so I used tried the file "sparse_jacobian.cpp" in the directory "sparse".</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: "my_sparse_jacobian.cpp" 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 "rind" 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>
</blockquote></div></html>