Re: [fpc-pascal] DBus in GUI application

2014-04-09 Thread Krzysztof
Thanks for sharing. Your code is working fine. But did you notice deadlocks (randomly)? For example if I use thread for signals listening. And then main thread (e.g. button click) want to call some method from same dbus interface. Even if try to use different connection by calling dbus_bus_get(DBUS

Re: [fpc-pascal] DBus in GUI application

2014-04-05 Thread Luca Olivetti
El 04/04/14 17:46, Krzysztof ha escrit: > Hi, > > DBus documentation give me a headache. Does anyone know solution how > to implement DBus in GUI main loop (for signals listening)? I have > tried with threads but have two problems: > 1. Not all signals are catched (randomly) > 2. Deadlock when mai

[fpc-pascal] DBus in GUI application

2014-04-04 Thread Krzysztof
Hi, DBus documentation give me a headache. Does anyone know solution how to implement DBus in GUI main loop (for signals listening)? I have tried with threads but have two problems: 1. Not all signals are catched (randomly) 2. Deadlock when main thread trying to use dbus methods Regards _