[fpc-pascal] FPC And D-Bus
ik
idokan at gmail.com
Thu Nov 24 20:26:40 CET 2011
On Thu, Nov 24, 2011 at 20:19, Ludo Brands <ludo.brands at free.fr> wrote:
> **
>
>
>
> I'm Trying to send notification using D-Bus Notify method.
> The thing is, that I do not understand how to properly use it.
> My current code:
> https://github.com/ik5/display-quotes/blob/master/src/units/untquotedbus.pas#L92
>
> I'ved marked the place where i Have AccessViolation exception.
> What am I doing wrong here ?
>
>
>
> At first sight there are several things wrong:
> - all values should be pointers to variables. PINTEGER(100) should be the
> address of a variable that contains 100.
> - null pchars are not allowed (empty strings!)
> - DBUS_TYPE_ARRAY should be a group of 4 elements: DBUS_TYPE_ARRAY , the
> type of array elements (fe DBUS_TYPE_UINT32), the address of the array,
> number of elements in the array
> - the array of const should terminate with a DBUS_TYPE_INVALID
> - I doubt DBUS_TYPE_DICT_ENTRY is allowed in dbus_message_append_args
>
Thanks, It still does not work., but now it does not crash anymore :)
>
> Ludo
>
> _______________________________________________
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20111124/78d9fa71/attachment.html>
More information about the fpc-pascal
mailing list