<font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2"> thanks ,<br>figured out,was a silly eror<br><br>________________________<br><br><font color="#990099">-----dbus-bounces+sruthi.m=tcs.com@lists.freedesktop.org wrote: -----</font><div><blockquote style="padding-right:0px;padding-left:5px;margin-left:5px;border-left:solid black 2px;margin-right:0px">To: dbus@lists.freedesktop.org<br>From: Sruthi M <sruthi.m@tcs.com><br>Sent by: dbus-bounces+sruthi.m=tcs.com@lists.freedesktop.org<br>Date: 03/29/2012 03:29PM<br>Subject: Segmentation fault with dbus_message_iter_recurse<br><br><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2">Hi ,<br>I am trying to iterate through an array recieved through dbus.<br>I get&nbsp; a segmentation fault&nbsp; with dbus_message_iter_recurse. Any ideas??<br>&nbsp;DBusMessageIter args,subIter);<br>.......<br>......<br>i if (!dbus_message_iter_init(msg, &amp;args))<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fprintf(stderr, "Message Has No Parameters\n");<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;if (DBUS_TYPE_ARRAY!= dbus_message_iter_get_arg_type(&amp;args))<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fprintf(stderr, "Message is of Array type\n");<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dbus_message_iter_recurse(&amp;args, &amp;subIter);<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br><br><br>____________________________________________<br>Experience certainty.        IT Services<br>                        Business Solutions<br>                        Outsourcing<br>____________________________________________<div></div></font><p>=====-----=====-----=====<br>
Notice: The information contained in this e-mail<br>
message and/or attachments to it may contain <br>
confidential or privileged information. If you are <br>
not the intended recipient, any dissemination, use, <br>
review, distribution, printing or copying of the <br>
information contained in this e-mail message <br>
and/or attachments to it are strictly prohibited. If <br>
you have received this communication in error, <br>
please notify us by reply e-mail or telephone and <br>
immediately and permanently delete the message <br>
and any attachments. Thank you</p>

<p></p>
<pre>_______________________________________________
dbus mailing list
dbus@lists.freedesktop.org
<a href="http://lists.freedesktop.org/mailman/listinfo/dbus">http://lists.freedesktop.org/mailman/listinfo/dbus</a>
</pre></sruthi.m@tcs.com></blockquote></div><div></div></font>