PDA

View Full Version : Application stopped because it received a signal from the operating system. Any Help?



RahulY
28th July 2015, 16:43
Hi Im implmenting a TcpServer with steps as follows,

ReadyRead() receive message and emitted back to Message handler (which is custom class) and message handler do the handle job and emitted back to tcpserver and Tcp Server need to eco back to the receiver.
I am suing the siganl and slot as shown below:-
connect(this, &TcpServer::emitedsignal, &messageHandler, &MessageHandeler::receiverSLOT)
connect(&messageHandler, &MessageHandeler::emitedsignal, this, &TcpServer::receiverSLOT)

But it has thrown an error and the stack says "this" not accessable. and any help please

The inferior stopped because it received a signal from the operating system.

Signal name :
SIGSEGV
Signal meaning :
Segmentation fault

Cheers

yeye_olive
28th July 2015, 17:16
This error occurs because a bug in your code corrupts some data structure. Please post a compilable and runnable program that reproduces the problem.

RahulY
28th July 2015, 19:05
Thank you for the response and I have past the code in the pastbin link below:-

http://pastebin.com/Hzy1KTZm

Cheers.

jefftee
29th July 2015, 01:24
Run your code using Qt Creator in debug mode and look at the stack trace after your app crashes.

RahulY
29th July 2015, 05:41
Thank you jefftee, I have fixed it and the bug on my message creator not in the signal and slot commun

Cheers.