Index: /trunk/BNC/bnc.pro
===================================================================
--- /trunk/BNC/bnc.pro	(revision 1522)
+++ /trunk/BNC/bnc.pro	(revision 1523)
@@ -2,6 +2,6 @@
 # Switch to debug configuration
 # -----------------------------
-CONFIG -= debug
-CONFIG += release
+CONFIG += debug
+CONFIG -= release
 
 DEFINES += NO_RTCM3_MAIN 
Index: /trunk/BNC/bnccaster.cpp
===================================================================
--- /trunk/BNC/bnccaster.cpp	(revision 1522)
+++ /trunk/BNC/bnccaster.cpp	(revision 1523)
@@ -117,6 +117,6 @@
   while(it.hasNext()){
     bncGetThread* thread = it.next();
-    thread->terminate();
-    delete thread;
+    ////    thread->quit();
+    thread->deleteLater();
   }
   delete _out;
Index: /trunk/BNC/bncrinex.cpp
===================================================================
--- /trunk/BNC/bncrinex.cpp	(revision 1522)
+++ /trunk/BNC/bncrinex.cpp	(revision 1523)
@@ -711,5 +711,5 @@
   _out.close();
   if (!_rnxScriptName.isEmpty()) {
-    msleep(1);
+    qApp->thread()->wait(100);
 #ifdef WIN32
     QProcess::startDetached(_rnxScriptName, QStringList() << _fName) ;
Index: /trunk/BNC/bncrinex.h
===================================================================
--- /trunk/BNC/bncrinex.h	(revision 1522)
+++ /trunk/BNC/bncrinex.h	(revision 1523)
@@ -36,5 +36,5 @@
 #include "RTCM/GPSDecoder.h"
 
-class bncRinex : public QThread {
+class bncRinex {
  public:
    bncRinex(const QByteArray& statID, const QUrl& mountPoint, 
@@ -54,7 +54,4 @@
      _approxPos[2] = staz;
    }
-
- protected:
-   virtual void run() {};
 
  private:
