Index: /trunk/BNC/bncpostprocess.cpp
===================================================================
--- /trunk/BNC/bncpostprocess.cpp	(revision 3626)
+++ /trunk/BNC/bncpostprocess.cpp	(revision 3627)
@@ -48,11 +48,8 @@
 ////////////////////////////////////////////////////////////////////////////
 t_postProcessing::t_postProcessing(QObject* parent) : QThread(parent) {
-
   bncSettings settings;
   _input.obsFileName  = settings.value("postObsFile").toString();
   _input.navFileName  = settings.value("postNavFile").toString();
   _input.corrFileName = settings.value("postcorrFile").toString();
-
-  _isToBeDeleted = false;
 }
 
@@ -60,16 +57,5 @@
 ////////////////////////////////////////////////////////////////////////////
 t_postProcessing::~t_postProcessing() {
-  if (isRunning()) {
-    wait();
-  }
-}
-
-// 
-////////////////////////////////////////////////////////////////////////////
-void t_postProcessing::terminate() {
-  _isToBeDeleted = true;
-  if (!isRunning()) {
-    delete this;
-  }
+  cout << "~t_postProcessing" << endl;
 }
 
@@ -82,8 +68,10 @@
   cout << "corrFile: " << _input.corrFileName.toAscii().data() << endl;
 
-  int MAXI = 10;
+  int MAXI = 5;
   for (int ii = 1; ii < MAXI; ii++) {
     cout << "ii = " << ii << endl;
     sleep(1);
   }
+
+  emit finished();
 }
Index: /trunk/BNC/bncpostprocess.h
===================================================================
--- /trunk/BNC/bncpostprocess.h	(revision 3626)
+++ /trunk/BNC/bncpostprocess.h	(revision 3627)
@@ -49,10 +49,8 @@
    
  public:
-  void terminate();
   virtual void run();
  
  private:
   t_postInput _input;
-  bool        _isToBeDeleted;
 };
 
Index: /trunk/BNC/bncwindow.cpp
===================================================================
--- /trunk/BNC/bncwindow.cpp	(revision 3626)
+++ /trunk/BNC/bncwindow.cpp	(revision 3627)
@@ -2255,5 +2255,5 @@
 
   t_postProcessing* postProcessing = new t_postProcessing(this);
-  connect(postProcessing, SLOT(finished()), this, SIGNAL(slotFinishedPostProcessing));
+  connect(postProcessing, SIGNAL(finished()), this, SLOT(slotFinishedPostProcessing()));
 
   postProcessing->start();
