I have a threaded application that reads data from a UDP socket in one thread, and then passes that data to two other threads: one for processing one for writing out to a file. (Note: The processing thread does nothing at the moment). All the writing thread does is write the data out to an open file.
When I run the app, it constantly consumes memory and then swap space, until there is none left. The OS then terminates the application.
I don't understand this behavior, can anyone shed any light on this? I've attached the entire source code in a tar file.
PS: I also welcome any comment/critique on my use of QThreads.
Bookmarks