<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(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(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>