<div dir="ltr">Dear All, <div><br></div><div>When I try to compile an IPOPT program with C++ interface with Visual Studio 2017 or G++ 5.3.0 (MinGW), I get the 0xC0000005 exception (Access violation reading location 0xCCCCCCCC. - in VS 2017). While I do not get the full exception text with G++, the created exe crashes, and when I see in the Windows event-viewer, I see the same exception as above with VS 2017. </div><div><br></div><div>In VS2017, this exception occurs, at the line <br><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>app->Options()->SetNumericValue("tol", 1e-6); . </div><div><br></div></blockquote>Apparently, this is the first time "app" is used in the program, which is an object created just a line before: <div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>SmartPtr<IpoptApplication> app = IpoptApplicationFactory();</div><div><br></div></blockquote>The overall code is correct, as this works fine with Visual Studio 2008. So I am guessing the issue is with a newer compiler. I don't know which version of G++ would this work with. <div><br></div><div>Any ideas on what is causing this issue ? suggestions for resolution ? What version of G++ should I try in Windows ? My Ipopt version is : 3.11.2. And I want to use the newer compiler/G++ as I am getting the "Compiler out of heap space" error with a bigger version of my NLP with VS 2008. </div><div><br></div><div>Thanks</div><div>Chintan Pathak </div><div><br><div><div><br></div><div> <br clear="all"><div><div class="gmail_signature"><div dir="ltr"><a href="https://about.me/chintanpathak" target="_blank">https://about.me/chintanpathak</a></div></div></div>
</div></div></div></div>