Changeset 4364 in ntrip for trunk/BNC/src/rinex


Ignore:
Timestamp:
Jun 25, 2012, 5:34:01 PM (12 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/src/rinex
Files:
2 edited

Legend:

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

    r4363 r4364  
    163163    }
    164164    catch (...) {
     165      delete _rnxObsFile; _rnxObsFile = 0;
    165166      emit finished();
    166167      deleteLater();
  • trunk/BNC/src/rinex/reqcedit.cpp

    r4363 r4364  
    115115      while (it.hasNext()) {
    116116        QString filePath = it.next().filePath();
     117        t_rnxObsFile* rnxObsFile = 0;
    117118        try {
    118           t_rnxObsFile* rnxObsFile = new t_rnxObsFile(filePath, t_rnxObsFile::input);
     119          rnxObsFile = new t_rnxObsFile(filePath, t_rnxObsFile::input);
    119120          rnxObsFiles.append(rnxObsFile);
    120121        }
    121122        catch (...) {
    122           cerr << "Error in rnxObsFile initialization" << endl;
     123          delete rnxObsFile;
     124          cerr << "Error in rnxObsFile " << filePath.toAscii().data() << endl;
    123125        }
    124126      }
    125127    }
    126128    else {
     129      t_rnxObsFile* rnxObsFile = 0;
    127130      try {
    128         t_rnxObsFile* rnxObsFile = new t_rnxObsFile(fileName, t_rnxObsFile::input);
     131        rnxObsFile = new t_rnxObsFile(fileName, t_rnxObsFile::input);
    129132        rnxObsFiles.append(rnxObsFile);
    130133      }
    131134      catch (...) {
    132         cerr << "Error in rnxObsFile initialization" << endl;
     135        cerr << "Error in rnxObsFile " << fileName.toAscii().data() << endl;
    133136      }
    134137    }
Note: See TracChangeset for help on using the changeset viewer.