Index: trunk/BNC/combination/bnccomb.cpp
===================================================================
--- trunk/BNC/combination/bnccomb.cpp	(revision 3433)
+++ trunk/BNC/combination/bnccomb.cpp	(revision 3434)
@@ -196,5 +196,5 @@
     delete _params[iPar-1];
   }
-  QVectorIterator<cmbCorr*> itCorr(_corrs);
+  QVectorIterator<cmbCorr*> itCorr(corrs());
   while (itCorr.hasNext()) {
     delete itCorr.next();
@@ -281,5 +281,5 @@
   // ---------------------------
   cmbCorr* existingCorr = 0;
-  QVectorIterator<cmbCorr*> itCorr(_corrs);
+  QVectorIterator<cmbCorr*> itCorr(corrs());
   while (itCorr.hasNext()) {
     cmbCorr* hlp = itCorr.next();
@@ -294,5 +294,5 @@
   }
   else {
-    _corrs.append(newCorr);
+    corrs().append(newCorr);
   }
 }
@@ -344,5 +344,5 @@
 
   int nPar = _params.size();
-  int nObs = _corrs.size(); 
+  int nObs = corrs().size(); 
 
   if (nObs == 0) {
@@ -363,5 +363,5 @@
     cmbAC* AC = icAC.next();
     AC->numObs = 0;
-    QVectorIterator<cmbCorr*> itCorr(_corrs);
+    QVectorIterator<cmbCorr*> itCorr(corrs());
     while (itCorr.hasNext()) {
       cmbCorr* corr = itCorr.next();
@@ -395,5 +395,5 @@
   QMap<QString, t_corr*> resCorr;
 
-  QVectorIterator<cmbCorr*> itCorr(_corrs);
+  QVectorIterator<cmbCorr*> itCorr(corrs());
   while (itCorr.hasNext()) {
     cmbCorr* corr = itCorr.next();
@@ -457,5 +457,5 @@
     out << _resTime.datestr().c_str() << " " << _resTime.timestr().c_str()
         << " Maximum Residuum " << maxRes << ' '
-        << _corrs[maxResIndex-1]->acName << ' ' << _corrs[maxResIndex-1]->prn;
+        << corrs()[maxResIndex-1]->acName << ' ' << corrs()[maxResIndex-1]->prn;
 
     if (maxRes > _MAXRES) {
@@ -463,6 +463,6 @@
         cmbParam* pp = _params[iPar-1];
         if (pp->type == cmbParam::offACSat            && 
-            pp->AC   == _corrs[maxResIndex-1]->acName &&
-            pp->prn  == _corrs[maxResIndex-1]->prn) { 
+            pp->AC   == corrs()[maxResIndex-1]->acName &&
+            pp->prn  == corrs()[maxResIndex-1]->prn) { 
           QQ_sav.Row(iPar)    = 0.0;
           QQ_sav.Column(iPar) = 0.0;
@@ -511,9 +511,5 @@
   // Delete Data
   // -----------
-  QVectorIterator<cmbCorr*> it(_corrs);
-  while (it.hasNext()) {
-    delete it.next();
-  }
-  _corrs.clear();
+  _buffer.remove(_resTime);
 }
 
Index: trunk/BNC/combination/bnccomb.h
===================================================================
--- trunk/BNC/combination/bnccomb.h	(revision 3433)
+++ trunk/BNC/combination/bnccomb.h	(revision 3434)
@@ -48,8 +48,8 @@
     }
     ~cmbAC() {}
-    QString           mountPoint;
-    QString           name;
-    double            weight;
-    unsigned          numObs;
+    QString  mountPoint;
+    QString  name;
+    double   weight;
+    unsigned numObs;
   };
 
@@ -59,4 +59,16 @@
   };
 
+  class cmbEpoch {
+   public:
+    cmbEpoch() {}
+    ~cmbEpoch() {
+      QVectorIterator<cmbCorr*> it(corrs);
+      while (it.hasNext()) {
+        delete it.next();
+      }
+    }
+    QVector<cmbCorr*> corrs;
+  };
+
   void processEpoch();
   void dumpResults(const QMap<QString, t_corr*>& resCorr);
@@ -64,14 +76,16 @@
   void switchToLastEph(const t_eph* lastEph, t_corr* corr);
 
-  QList<cmbAC*>      _ACs;
-  bncTime            _resTime;
-  QVector<cmbParam*> _params;
-  QVector<cmbCorr*>  _corrs;
-  bncRtnetDecoder*   _rtnetDecoder;
-  SymmetricMatrix    _QQ;
-  bool               _firstReg;
-  QByteArray         _log;
-  bncAntex*          _antex;
-  double             _MAXRES;
+  QVector<cmbCorr*>& corrs() {return _buffer[_resTime].corrs;}
+
+  QList<cmbAC*>           _ACs;
+  bncTime                 _resTime;
+  QVector<cmbParam*>      _params;
+  QMap<bncTime, cmbEpoch> _buffer;
+  bncRtnetDecoder*        _rtnetDecoder;
+  SymmetricMatrix         _QQ;
+  bool                    _firstReg;
+  QByteArray              _log;
+  bncAntex*               _antex;
+  double                  _MAXRES;
 };
 
