Ignore:
Timestamp:
Jun 17, 2013, 9:06:09 AM (11 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/rinex/bncpostprocess.cpp

    r5215 r5238  
    6161  _corrFile   = 0;
    6262  _pppClient  = 0;
     63  _isToBeDeleted = false;
    6364
    6465  bncSettings settings;
     
    8182////////////////////////////////////////////////////////////////////////////
    8283t_postProcessing::~t_postProcessing() {
     84  qDebug() << "~t_postProcessing";
    8385  delete _pppClient;
    8486  delete _rnxNavFile;
     
    135137}
    136138
     139//
     140////////////////////////////////////////////////////////////////////////////
     141void t_postProcessing::terminate() {
     142  _isToBeDeleted = true;
     143  if (!isRunning()) {
     144    delete this;
     145  }
     146}
     147
    137148// 
    138149////////////////////////////////////////////////////////////////////////////
     
    193204
    194205    for (unsigned iObs = 0; iObs < epo->rnxSat.size(); iObs++) {
     206      if (_isToBeDeleted) {
     207        QThread::exit(0);
     208        this->deleteLater();
     209        return;
     210      }
    195211
    196212      const t_rnxObsFile::t_rnxSat& rnxSat = epo->rnxSat[iObs];
Note: See TracChangeset for help on using the changeset viewer.