[Gambas-user] DBusSignal Error (Send)

Benoît Minisini gambas at ...1...
Fri Nov 18 18:16:46 CET 2016


Le 14/11/2016 à 18:00, Hans Lehmann a écrit :
> Hello,
>
> in my project 'signaltx2' I get after this source line:
>
> DBus[DBus.Name].Raise(NameVersion, "GetGBVersion", ["3.9.1"])
>
> the following error message:
>
> Couldn't allocate D-Bus message !
>
> Where is the error in the source code? Can someone help?
> Project attached.
>
> Sincerely
>
> Hans
>

It should behave better with revision #7984.

The problem was in the event name. You didn't specified the event 
interface, and so you got a crash.

Now, when no interface is specified in the event name, the default 
interface of the object is used.

Thus:

DBus[$sDBusService].Raise($hDBusObject, "GetGBVersion", ["3.9.1"])

is replaced by:

DBus[$sDBusService].Raise($hDBusObject, 
"org.gambas.signaltx2.nameversion.GetGBVersion", ["3.9.1"])

Regards,

-- 
Benoît Minisini




More information about the User mailing list