[Ipopt] Error while freeing SmartPointer

Paul Smith phhs80 at gmail.com
Thu Mar 3 15:02:24 EST 2011


On Thu, Mar 3, 2011 at 6:32 PM, Stefan Vigerske
<stefan at math.hu-berlin.de> wrote:
>> Thanks, Stefan and Rodrigo. No, I am not deleting explicitly anything.
>> However, I do have a vector inside my MyNLP class. Should I remove
>> this vector? But if I remove the vector, what should I use in
>> substitution?
>
> Class members like your vector should cause no trouble.
> Best is to follow what Hans said and to run valgrind to see where the memory
> that is probably freed twice was freed the first time.

Thanks to all! I used valgrind as you suggested, and the problem is now fixed.

Paul



More information about the Ipopt mailing list