Skip to content

Checkpoint file does not close after writing

Hello! In cmdock.cxx at line ~800, data is being written in checkpoint file, but file stream does not closed.

          checkpointFile.seekp(0);
          checkpointFile.write(checkpointContent, 255);
          checkpointFile.flush();

This can produce incorrect counting of CPU time under Windows in some cases. Slightly more information: https://www.sidock.si/sidock/forum_thread.php?id=225&postid=2008

Thank you!