<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Hi Daniel,<br>
<br>
then, that is indeed unexpected behavior. Is it possible for you
to rebuild your application in debug mode and send me a full
backtrace after launching it inside a debugging tool?<br>
<br>
Best,<br>
Gregor<br>
<br>
Am 21.04.2017 um 03:28 schrieb Daniel Herl Carrero:<br>
</div>
<blockquote
cite="mid:CAGKwByy7bCvy2bLj=777s6gtDQDT6TjkiR+dmWwaEV_GKCiyag@mail.gmail.com"
type="cite">
<div dir="ltr">I already did that, I printed the solution in the
console with SCIPprintBestSol(scip,NULL,FALSE) and worked fine.
The function fails when I try to use it giving it a file to
write in.</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2017-04-18 16:30 GMT-03:00 Gregor
Hendel <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:hendel@zib.de" target="_blank">hendel@zib.de</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"> Dear Daniel,<br>
<br>
I can definitely tell that this file is open. However, you
may have overread the profi advise to your stack overflow
question to check if there is a best solution. Please
check this using either SCIPgetBestSol() or SCIPgetNSols()
prior to calling SCIPprintBestSol().<br>
<br>
Happy printing,<br>
Gregor
<div>
<div class="h5"><br>
<br>
<div class="m_-6374490203835568597moz-cite-prefix">Am
18.04.2017 um 20:57 schrieb Daniel Herl Carrero:<br>
</div>
</div>
</div>
<blockquote type="cite">
<div>
<div class="h5">
<div dir="ltr">
<div>
<div>Dear SCIPers,<br>
<br>
</div>
I`m using the scip (3.2.1) API for C++ (in VS
2013) and resolving a simple LP. After SCIP
reaches a solution I try to store the results in
a file with the following code:<br>
<br>
FILE* file;<br>
if ((file = fopen("Solution.sol", "w")) !=
nullptr){<br>
SCIP_CALL(SCIPprintBestSol(<wbr>scip,
file, FALSE));<br>
fclose(file);<br>
}<br>
<br>
</div>
<div>But the code throws me an Access Violation
Error. The code succesfully creates the file but
fails trying to execute the SCIPprintBestSol()
function. I used the function to print the
solution in the console and it works (
SCIP_CALL(SCIPprintBestSol(<wbr>scip, NULL,
FALSE)); ) but it fails when I try to use it to
write this solution to a file (like in the code
above).<br>
<br>
</div>
<div>Has anyone encountered the same problem
before? I really need to export the solutions
and any help will be much appreciated.<br>
<br>
</div>
<div>Thanks!<br>
</div>
<div>Daniel<br>
</div>
</div>
<br>
<fieldset
class="m_-6374490203835568597mimeAttachmentHeader"></fieldset>
<br>
</div>
</div>
<pre>______________________________<wbr>_________________
Scip mailing list
<a moz-do-not-send="true" class="m_-6374490203835568597moz-txt-link-abbreviated" href="mailto:Scip@zib.de" target="_blank">Scip@zib.de</a>
<a moz-do-not-send="true" class="m_-6374490203835568597moz-txt-link-freetext" href="https://listserv.zib.de/mailman/listinfo/scip" target="_blank">https://listserv.zib.de/<wbr>mailman/listinfo/scip</a>
</pre>
</blockquote>
</div>
______________________________<wbr>_________________
Scip mailing list
<a moz-do-not-send="true" href="mailto:Scip@zib.de">Scip@zib.de</a>
<a moz-do-not-send="true" href="https://listserv.zib.de/mailman/listinfo/scip" rel="noreferrer" target="_blank">https://listserv.zib.de/<wbr>mailman/listinfo/scip</a>
</blockquote></div>
</div>
</blockquote>
</body></html>