Hello, i get a segmentation fault when i emit a signal, down here there are some snippet of code, maybe somebody can give me a hint.
Thanks

clientsocket.h
Qt Code:
  1. #include <QTcpSocket>
  2. #include <QtGui>
  3. #include "callApplication.h"
  4.  
  5. class ClientSocket : public QTcpSocket
  6. {
  7. Q_OBJECT
  8.  
  9. private slots:
  10. void generateError();
  11. void readClient();
  12.  
  13. private:
  14. CallApplication *callApplication;
  15.  
  16. };
To copy to clipboard, switch view to plain text mode 

clientsocket.cpp
Qt Code:
  1. ClientSocket::ClientSocket(QTextBrowser *textBrowser)
  2. {
  3. connect(this->callApplication, SIGNAL(error()), this, SLOT(generateError())); //<-- segmentation fault
  4. connect(this, SIGNAL(readyRead()), this, SLOT(readClient()));
  5. }
  6.  
  7. ClientSocket::readClient(){
  8. //read something from client...
  9. callApplication = new CallApplication(this->textBrowserPark);
  10. }
To copy to clipboard, switch view to plain text mode 

callApplication.h
Qt Code:
  1. #include <QProcess>
  2.  
  3. class CallApplication : public QObject
  4. {
  5. Q_OBJECT
  6. signals:
  7. void error();
  8. private:
  9. performApplication();
  10. public:
  11. QProcess process;
  12. };
To copy to clipboard, switch view to plain text mode 

callApplication.cpp
Qt Code:
  1. void CallApplication::performApplication()
  2. {
  3. emit error();
  4. }
To copy to clipboard, switch view to plain text mode