PDA

View Full Version : D-Bus in Multithreading environment



mdecandia
15th March 2007, 17:36
Hi all,
I'm developing a multithread application using dbus.
Each thread needs to request remote methods from a dbus service.
I create a unique QDBusConnection and a unique QDBusAbstractInterface for all threads and I call remote methods with QDBusAbstractInterface::callWithArgumentList in each of them.
If thread number is limited (10-15) I don't test problems but if I have more threads I have out of memory error on remote method call.

Do you have experience with this problem? Is that the right way to use QDBusAbstractInterface into a multithread environment?


Thanks,
Michele