]> Creatis software - bbtk.git/blobdiff - kernel/src/bbtkWxConsole.cxx
Fixed crash with Interpreter without WxConsole (case of RUN button of WxBrowser)
[bbtk.git] / kernel / src / bbtkWxConsole.cxx
index 31ca73b3ea1b9847dcfee4872cb62478e57a6ed6..45e1581405f1324339abcdf31cd35462f6aa314f 100644 (file)
@@ -3,8 +3,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkWxConsole.cxx,v $
   Language:  C++
-  Date:      $Date: 2008/03/10 12:28:43 $
-  Version:   $Revision: 1.11 $
+  Date:      $Date: 2008/03/11 12:27:21 $
+  Version:   $Revision: 1.12 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -378,14 +378,14 @@ namespace bbtk
   //================================================================
   void WxConsole::CommandString(wxString line )
   {
-printf("WxConsole::CommandString 01 \n");
+    //printf("WxConsole::CommandString 01 \n");
     wxString s = _T("> ") + line + _T("\n");
     mwxTextHistoryAttr->SetTextColour(*wxRED);
     mwxTextHistory->SetDefaultStyle(*mwxTextHistoryAttr);
     mwxTextHistory->AppendText(s);
     // send to standard console also 
-printf("WxConsole::CommandString 02 \n");
-    printf("%s",wx2std(s).c_str());
+    //printf("WxConsole::CommandString 02 \n");
+    //    printf("%s",wx2std(s).c_str());
 //EED    mwxTextCommand->Clear();
     mwxTextCommand->SetValue(_T(""));
        mwxTextCommand->Append(line);
@@ -394,13 +394,13 @@ printf("WxConsole::CommandString 02 \n");
     mwxTextHistoryAttr->SetTextColour(*wxBLACK);
     mwxTextHistory->SetDefaultStyle(*mwxTextHistoryAttr);
 
-printf("WxConsole::CommandString 03 \n");
+    //printf("WxConsole::CommandString 03 \n");
     try 
     {
       bool insideComment = false;
-printf("WxConsole::CommandString 04 \n");
+      //printf("WxConsole::CommandString 04 \n");
           mInterpreter->InterpretLine( wx2std(line), insideComment );
-printf("WxConsole::CommandString 05 \n");
+          //printf("WxConsole::CommandString 05 \n");
     }
     catch (bbtk::QuitException)
     {
@@ -419,7 +419,7 @@ printf("WxConsole::CommandString 05 \n");
           std::cout << "* UNDEFINED ERROR (not a bbtk nor a std exception)"
                          << std::endl;
     }
-printf("WxConsole::CommandString 06 \n");
+    //printf("WxConsole::CommandString 06 \n");
   }
   //================================================================