[solved] SIGSEGV segmentation fault
-
Hi,
As far as I know this error could be caused due to accessing a NULL POINTER or invalid memory. -
What are type of listeMessages object? And are you initialize listeMessages?
-
Hi , listeMessages is a QTextBrowser
-
i have changed s.th and now the debugger shows me that the ploblem is on line 33 :
socket->connectToHost(serveurIP->text(), serveurPort->value()); -
Hi,
From the code you posted, neither serveurIP nor serveurPort are initialized
-
serveurIP is a QLineEdit ,serveurPort is a QDableSpinBox : both are inisialised in client.ui
-
Then, the calls should be
@socket->connectToHost(ui->serveurIP->text(), ui->serveurPort->value());@
-
it's ok i have solved this problem but now another error appaired it's related with socket i will create another discussion . Thanx everybody for help :)
-
So what was the problem ?
Since you solved it, please update the thread title prepending [solved] so other forum users may know a solution has been found :)
-
Hi ,the problem was on: "socket->connectToHost(ui->serveurIP->text(), ui->serveurPort->value()); " on this line I forget to put ui-> as you told me @SGaist , thanx for help.
-
What is strange is that this would compile, so I guess you have member variables with these names in your class ? If so remove you should remove them