I get a weird program termination when I use connect() in my code. I checked the code properly, i don't know where the mistake comes from:

I call construct the control object in MainWindow and call its init()
Qt Code:
  1. void Control::initObjects()
  2. {
  3. logger = new ErrorLogger();
  4.  
  5. X = new Xr();
  6.  
  7. Y = new Y();
  8.  
  9. Z = new Z();
  10.  
  11. rs_485 = new rs485();
  12.  
  13. establishConnections();
  14. }
  15.  
  16. void Control::establishConnections()
  17. {
  18. connect(X , SIGNAL(logMessage(const char* )), logger, SLOT(logMessage(const char* )));
  19. connect(Y , SIGNAL(logMessage(const char* )), logger, SLOT(logMessage(const char* )));
  20. connect(Z , SIGNAL(logMessage(const char* )), logger, SLOT(logMessage(const char* )));
  21. connect(rs485 , SIGNAL(logMessage(const char* )), logger, SLOT(logMessage(const char* )));
  22. }
To copy to clipboard, switch view to plain text mode 

the last connect terminates my program, thought the first 3 work properly.