<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<font face="Calibri, sans-serif" size="2">
<div style="text-align: justify; ">Hi<font face="ËÎÌå">£º</font></div>
<div style="text-align: justify; ">I want to make a dbus_send and dbus_get test.</div>
<div style="text-align: justify; ">In dbus_send.c:</div>
<div style="text-align: justify; "><font color="#1F497D"> dbus_int32_t array[] = { 1, 2, 3 };</font></div>
<div style="text-align: justify; "><font color="#1F497D"> dbus_int32_t *v_ARRAY = array;</font></div>
<div style="text-align: justify; "><font color="#1F497D">dbus_message_append_args (dbmsg, DBUS_TYPE_ARRAY, DBUS_TYPE_INT32, &v_ARRAY, 3, DBUS_TYPE_INVALID); </font></div>
<div style="text-align: justify; "><font face="Times New Roman, serif"> </font></div>
<div style="text-align: justify; ">In dbus_get.c:</div>
<div style="text-align: justify; "><font color="#1F497D">dbus_int32_t array[] = {0,0,0};</font></div>
<div style="text-align: justify; "><font color="#1F497D">dbus_int32_t *v_ARRAY = array;</font></div>
<div style="text-align: justify; "><font color="#1F497D">dbus_message_get_args (message, &dberr,DBUS_TYPE_ARRAY,DBUS_TYPE_INT32,&v_ARRAY,3, DBUS_TYPE_INVALID);</font></div>
<div style="text-align: justify; "><font face="Times New Roman, serif"> </font></div>
<div style="text-align: justify; ">I can compile, but when run dbus_get in one terminal, and run dbus_send in another terminal, there will be ¡°<font color="#1F497D">Segmentation fault</font></div>
<div style="text-align: justify; ">¡± in dbus_get.</div>
<div style="text-align: justify; ">So my question is: how can I receive an ARRAY via <font color="#1F497D">dbus_message_get_args</font><font color="#1F497D"> interface?</font></div>
<div style="text-align: justify; "><font face="Times New Roman, serif"> </font></div>
<div style="text-align: justify; "><font face="Times New Roman, serif">BRs,</font></div>
<div style="text-align: justify; "><font face="Times New Roman, serif">Songyue Wang <font face="΢ÈíÑźÚ, sans-serif">ÍõËÉÔÂ</font></font></div>
<div style="text-align: justify; "><font face="Times New Roman, serif">Tel: 86-10-5751-1739</font></div>
<div style="text-align: justify; "><font face="Times New Roman, serif">iNet: 8751-1739</font></div>
<div style="text-align: justify; "><font face="Times New Roman, serif">Mobile: 15710026726</font></div>
<div style="text-align: justify; "><font face="Times New Roman, serif"><a href="mailto:songyue.wang@intel.com"><font color="#0000FF"><u>mailto:songyue.wang@intel.com</u></font></a></font></div>
<div style="text-align: justify; "><font face="Times New Roman, serif">DRD Atom/Meego Platform Enabling Team</font></div>
<div style="text-align: justify; "><font face="Times New Roman, serif"> </font></div>
<div style="text-align: justify; "><font face="Times New Roman, serif"> </font></div>
<div style="text-align: justify; "><font face="Times New Roman, serif"> </font></div>
<div style="text-align: justify; "><font face="Times New Roman, serif"> </font></div>
</font>
</body>
</html>