Ignore:
Timestamp:
2000-11-01T08:09:20+13:00 (24 years ago)
Author:
cs025
Message:

Fundamental changes in the method of handling logs to further bypass faults
in the Microsoft implementation of C++ fstream class.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsinstaller/gsinstall.cpp

    r1588 r1638  
    350350    }
    351351
    352   // open the log for writing
     352  // set the log for writing
    353353  FilePath *logPath = new FilePath(this->destinationPath->pathString(), "install.log");
    354   this->openLog(logPath->pathString(), true);
    355   delete logPath;
    356 }
     354  this->setLogFile(logPath->pathString());
     355  delete logPath;}
    357356
    358357bool GSInstall::setUninstall()
     
    394393  // will in fact be the temporary directory as outlined above)
    395394  FilePath *logPath = new FilePath(this->sourcePath->pathString(), "install.log");
    396   this->openLog(logPath->pathString(), false);
     395  this->setLogFile(logPath->pathString());
     396  this->readLog();
    397397  delete logPath;
    398398 
     
    951951          // will be deleted, it must be closed; copying may also fail, so it's
    952952          // safer to close it before doing either.
    953           install.closeLog();
     953          install.recordLog();
    954954
    955955          // if the install is empty, terminate all final items (currently the
     
    999999        install.updateSetupExe();
    10001000
    1001         // the log will need reopening (probably failed initially)
    1002         install.reopenLog();
    1003 
    10041001        // close log
    1005         install.closeLog();
     1002        install.recordLog();
    10061003
    10071004        // do further actions
Note: See TracChangeset for help on using the changeset viewer.