Hi,

I am trying to get an application working that utilizes 4 instances of the same thread. I have another thread called ThreadManager that hands data to each of the 4 threads...

I am processing folders that contain 4000+ files. I must read and update data in each file. They can all be done simultaneously...without depending on each other.

My 4 workers each process a file...with the Manager controlling which file is next to be processed and handing it off to the next thread that is waiting...

Now for the problem. I want to update the GUI as each file is processed. I have signals coming out of each worker that is attached to a unique slot in the Manager. The Manager's slots emit signals that are connected to the main app. No problem except that the GUI lags behind...quite a bit...when using QueuedConnections. I currently have DirectConnections for the worker->manager singals and QueuedConnections from the manager->main. If I use DirectConnection for the manager->main, the app crashes with the first worker signal emitted.

On another note, when I dispatch a file to a worker, if I DO NOT use a wait() on that worker, the app tends to crash after a few iterations. The only way I seem to be able to get through an entire directory is by calling wait(ULONG_MAX)...any ideas?

Thanks,
Sam