Qt-interest Archive, March 2007
Re: Threaded UDP Receiver Problem
Message 1 in thread
On Feb 28, 2007, at 2:55 PM, Brad Howes wrote:
> I've got a display program that receives data from multiple sources
> over UDP (multicast really). The receivers run in their own thread.
> Everything starts out just fine. I see data on all of the channels,
> and I have no problem keeping up with the traffic flow (no drops),
> and no memory leaks. However, after some variable amount of time, a
> channel will no longer receive data -- the QUdpSocket no longer
> emits the readyRead signal. And after awhile, another channel will
> no longer signal new data. Everything in the GUI works just fine,
> just no data. Of course, restarting the app shows all channels
> alive with data.
>
> Any ideas? I'm thinking of removing the event loops in the threads
> and just doing blocking reads on the socket.
I found a suggestion to disable glib during Qt configuration on
Linux. That was the ticket.
Why use glib if not required? And why is glib usage on by default?
Just curious.
Brad
--
[ signature omitted ]