Good point.  Who wrote that code anyway?

svn blame wrapper.cpp
  ...
  19159      davea     if (checkpoint_filename.size()) {
  19159      davea         boinc_delete_file(checkpoint_filename.c_str());
  19159      davea     }

Oops!

-- David

On 13-Sep-2011 12:39 PM, yoyo wrote:
> Hello,
> I use the precompiled wrapper and with this the project setup was very
> simple.
> But the wrapper deletes the checkpoint file which the legacy application
> writes on restart.
>
> I run a workunit and during this I finish Boinc.
> The checkpoint file is still in the slot.
> Than I restart Boinc and the workunit coninues but the checkpoint files
> has vanished and the workunit starts from the beginning.
> It seems that this source is responsible for it:
>
> ....
>
> int TASK::run(int argct, char** argvt) {
>      string stdout_path, stdin_path, stderr_path;
>      char app_path[1024], buf[256];
>
>      if (checkpoint_filename.size()) {
>          *boinc_delete_file(checkpoint_filename.c_str());*
>      }
>      if (fraction_done_filename.size()) {
>          boinc_delete_file(fraction_done_filename.c_str());
> ...
>
> yoyo
_______________________________________________
boinc_dev mailing list
boinc_dev@ssl.berkeley.edu
http://lists.ssl.berkeley.edu/mailman/listinfo/boinc_dev
To unsubscribe, visit the above URL and
(near bottom of page) enter your email address.

Reply via email to