Index: /trunk/BNC/bnc.pro
===================================================================
--- /trunk/BNC/bnc.pro	(revision 1525)
+++ /trunk/BNC/bnc.pro	(revision 1526)
@@ -2,6 +2,6 @@
 # Switch to debug configuration
 # -----------------------------
-CONFIG += debug
-CONFIG -= release
+CONFIG -= debug
+CONFIG += release
 
 DEFINES += NO_RTCM3_MAIN 
Index: /trunk/BNC/bncgetthread.cpp
===================================================================
--- /trunk/BNC/bncgetthread.cpp	(revision 1525)
+++ /trunk/BNC/bncgetthread.cpp	(revision 1526)
@@ -85,5 +85,5 @@
   if (!_rnx) {
     cerr << "no RINEX path specified" << endl;
-    delete this;
+    ::exit(1);
   }
 }
@@ -402,4 +402,5 @@
 
   if      (irc == fatal) {
+    QThread::exit(1);
     this->deleteLater();
     return;
@@ -419,4 +420,9 @@
   // ------------------
   while (true) {
+    if (_isToBeDeleted) {
+      QThread::exit(0);
+      this->deleteLater();
+      return;
+    }
     try {
       if (_query && _query->status() != bncNetQuery::running) {
