Index: trunk/BNC/bnc.pro
===================================================================
--- trunk/BNC/bnc.pro	(revision 2908)
+++ trunk/BNC/bnc.pro	(revision 2909)
@@ -2,6 +2,6 @@
 # Switch to debug configuration
 # -----------------------------
-CONFIG -= release
-CONFIG += debug
+CONFIG -= debug
+CONFIG += release
 
 
Index: trunk/BNC/bncapp.cpp
===================================================================
--- trunk/BNC/bncapp.cpp	(revision 2908)
+++ trunk/BNC/bncapp.cpp	(revision 2909)
@@ -114,12 +114,4 @@
     _GLOFreq[ii] = 0;
   }
-
-#ifdef USE_COMBINATION
-  _bncComb = new bncComb();
-  if (_bncComb->nStreams() < 2) {
-    delete _bncComb;
-    _bncComb = 0;
-  }
-#endif
 }
 
@@ -876,2 +868,14 @@
   }
 }
+
+// 
+////////////////////////////////////////////////////////////////////////////
+void bncApp::initCombination() {
+#ifdef USE_COMBINATION
+  _bncComb = new bncComb();
+  if (_bncComb->nStreams() < 2) {
+    delete _bncComb;
+    _bncComb = 0;
+  }
+#endif
+}
Index: trunk/BNC/bncapp.h
===================================================================
--- trunk/BNC/bncapp.h	(revision 2908)
+++ trunk/BNC/bncapp.h	(revision 2909)
@@ -51,4 +51,5 @@
     void storeGlonassSlotNums(const int GLOFreq[]);
     void getGlonassSlotNums(int GLOFreq[]);
+    void initCombination();
 
   public slots:
Index: trunk/BNC/bncmain.cpp
===================================================================
--- trunk/BNC/bncmain.cpp	(revision 2908)
+++ trunk/BNC/bncmain.cpp	(revision 2909)
@@ -132,4 +132,5 @@
     app.setPort(settings.value("outEphPort").toInt());
     app.setPortCorr(settings.value("corrPort").toInt());
+    app.initCombination();
 
     app.connect(caster, SIGNAL(getThreadsFinished()), &app, SLOT(quit()));
@@ -160,4 +161,5 @@
       caster->addGetThread(getThread, true);
     }
+
   }
 
Index: trunk/BNC/bncwindow.cpp
===================================================================
--- trunk/BNC/bncwindow.cpp	(revision 2908)
+++ trunk/BNC/bncwindow.cpp	(revision 2909)
@@ -1300,4 +1300,5 @@
   ((bncApp*)qApp)->setPort(_outEphPortLineEdit->text().toInt());
   ((bncApp*)qApp)->setPortCorr(_corrPortLineEdit->text().toInt());
+  ((bncApp*)qApp)->initCombination();
 
   connect(_caster, SIGNAL(getThreadsFinished()), 
