Thanks you for your quickly response.
Yes i need to use a thread because the frequency of data's reception is important, otherwise it would block my application.
I modified my code, but there is something I do not understand...
" - be aware that your slots are currently executed in the main thread, so do not access "socket" in them " : effectively, i addedand my slot run in the main thread. But, how I can retrieve data before the error, how can I access the socket?Qt Code:
qDebug() << this->thread();To copy to clipboard, switch view to plain text mode
In the console, i can see :
Sometimes this error is not blockingNb byte : 936
Nb byte : 936
Nb byte : 936
Nb byte : 936
QSocketNotifier: Invalid socket 15 and type 'Read', disabling...
Nb byte : 936
Nb byte : 936
Nb byte : 936
Nb byte : 936![]()
Bookmarks