Re: Reading from TCP Socket crashes program
and now it almost finishes compiling in debug mode... but MinGW comes up with some weird error I'm totally not responsible for:
C:\MinGW\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\ mingw32\bin\ld.exe: cannot find -lqtmain
But at least it still compiles in release mode. But it still crashes whenever the client trys to even do anything with the readyRead function.
Re: Reading from TCP Socket crashes program
Anyone else got any ideas?
Re: Reading from TCP Socket crashes program
Quote:
Originally Posted by OnionRingOfDoom
but MinGW comes up with some weird error I'm totally not responsible for
Did you compile Qt in debug mode? Do you have the libqtmain.a and libqtmaind.a files in %QTDIR%\lib directory?
Quote:
But it still crashes whenever the client trys to even do anything with the readyRead function.
Does it crash with empty MainWindow::readSpeed()?
Also add "CONFIG += console" to your .pro file and see whether your program outputs something to the console.
Re: Reading from TCP Socket crashes program
Quote:
Originally Posted by jacek
Does it crash with empty MainWindow::readSpeed()?
Also add "CONFIG += console" to your .pro file and see whether your program outputs something to the console.
No, it does not crash when readSpeed() is empty.
And no, it doesn't write anything to the console.
I'm gonna try to reinstall Qt in debug mode this afternoon, after school
Re: Reading from TCP Socket crashes program
Quote:
Originally Posted by OnionRingOfDoom
No, it does not crash when readSpeed() is empty.
Could you post the line in which you initialize that label variable?
Re: Reading from TCP Socket crashes program
As for the label, it's initialized like so:
...............
Wait a sec...... *checks the .h file*
Oh....
I initialised the label variable twice....
**facepalms**
problem solved....
Re: Reading from TCP Socket crashes program
Heh, thanks for your help through all this! I tend to have other people ask me some question and then I realise a stupid error I made...