<div dir="ltr">On Thu, Nov 24, 2011 at 20:19, Ludo Brands <span dir="ltr"><<a href="mailto:ludo.brands@free.fr">ludo.brands@free.fr</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<u></u>
<div><div><div class="h5">
<div><font color="#0000ff" face="Arial" size="2"></font> </div>
<blockquote dir="ltr" style="PADDING-LEFT:5px;MARGIN-LEFT:5px;BORDER-LEFT:#0000ff 2px solid;MARGIN-RIGHT:0px">
<div></div><font color="#0000ff" face="Arial" size="2"></font>
<div dir="ltr"><br>I'm Trying to send notification using D-Bus Notify
method.<br>The thing is, that I do not understand how to properly use
it.<br>My current code: <a href="https://github.com/ik5/display-quotes/blob/master/src/units/untquotedbus.pas#L92" target="_blank">https://github.com/ik5/display-quotes/blob/master/src/units/untquotedbus.pas#L92</a><br>
<br>I'ved
marked the place where i Have AccessViolation exception.<br>What am I doing
wrong here ?<br><br><span><font color="#0000ff" face="Arial" size="2"> </font></span></div></blockquote>
</div></div><div dir="ltr"><span> <font color="#0000ff" face="Arial" size="2">At first sight there are several things wrong:</font></span></div>
<div dir="ltr"><span><font color="#0000ff" face="Arial" size="2">- all values should be pointers to variables. PINTEGER(100) should be the
address of a variable that contains 100.</font></span></div>
<div dir="ltr"><span><font color="#0000ff" face="Arial" size="2">- null pchars are not allowed (empty strings!)</font></span></div>
<div dir="ltr"><span><font color="#0000ff" face="Arial" size="2">- 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</font></span></div>
<div dir="ltr"><span><font color="#0000ff" face="Arial" size="2">- the array of const should terminate with a
DBUS_TYPE_INVALID</font></span></div>
<div dir="ltr"><span><font color="#0000ff" face="Arial" size="2">- I doubt DBUS_TYPE_DICT_ENTRY is allowed in
dbus_message_append_args</font></span></div></div></blockquote><div><br>Thanks, It still does not work., but now it does not crash anymore :)<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><span class="HOEnZb"><font color="#888888">
<div dir="ltr"><span><font color="#0000ff" face="Arial" size="2"></font></span> </div>
<div dir="ltr"><span><font color="#0000ff" face="Arial" size="2">Ludo</font></span></div></font></span></div>
<br>_______________________________________________<br>
fpc-pascal maillist - <a href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a><br>
<a href="http://lists.freepascal.org/mailman/listinfo/fpc-pascal" target="_blank">http://lists.freepascal.org/mailman/listinfo/fpc-pascal</a><br></blockquote></div><br></div>