<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
Hello,<BR>
<BR>
I think that I have found out the origin of my problem. Dbus induces an infinite loop when I send a signal with an iterative structure which contains many elements (integer).<BR>
I do not know why this limit is very low. A infinite loop occurs when Dbus should treat about one hundred integers in a iterative structure with this code :<BR>
<BR>
<FONT color=#000080> for (j = 0; j < N; j++)<BR> {<BR> if (!dbus_message_iter_append_basic(&struct_iter, DBUS_TYPE_INT32, &x[j])) {<BR> printf("Out Of Memory!\n");<BR> exit(1);<BR> }<BR> }</FONT><BR>
<BR>
The error message is :<BR><BR>
<FONT color=#000080>type end_struct not a basic type<BR>type unknown not a basic type<BR>....<BR>type unknown not a basic type<BR>....</FONT><BR>
<BR>
Do you know the exact limit of an iterative structure in DBus and why it seems so low ?<BR>
<BR>
In my application I'd like to send an iterative structure with one or more thousand integers<BR>
<BR>
Thank you and best regards<BR>
<BR>
VyDaMan<BR><BR><BR><BR><BR>
<HR>
<BR>
From: qa_tridang@hotmail.com<BR>To: dbus@lists.freedesktop.org<BR>Subject: Infinite loop in dbus<BR>Date: Mon, 29 Sep 2008 15:10:05 +0000<BR><BR>
<META content="Microsoft SafeHTML" name=Generator>
<STYLE>
.ExternalClass .EC_hmmessage P
{padding:0px;}
.ExternalClass body.EC_hmmessage
{font-size:10pt;font-family:Tahoma;}
</STYLE>
<FONT color=#0000ff>Hello,</FONT><BR><FONT color=#0000ff></FONT> <BR><FONT color=#0000ff>I have a strange problem in using D-Bus. My application has several send and receive signal processes. But sometimes, one process, after receiving a signal, becomes blocked with a error message in infinite loop (more one million (?) error lines per minute):</FONT><BR> <BR>end_struct<BR>type unknown not a basic type<BR>....<BR>type unknown not a basic type<BR>....<BR> <BR><BR><FONT face=Arial color=navy><SPAN lang=EN-GB style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><FONT size=3>
<P class=EC_EC_EC_MsoNormal><FONT face=Arial color=#0000ff size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">And I cannot find any trace in my program to debug it.</SPAN></FONT></P>
<P class=EC_EC_EC_MsoNormal><FONT face=Arial color=#0000ff size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Do you have an idea for this severe problem ?</SPAN></FONT></P>
<P class=EC_EC_EC_MsoNormal><FONT face=Arial color=#0000ff size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Thank you and bests regards</SPAN></FONT></P>
<P class=EC_EC_EC_MsoNormal><FONT face=Arial color=#0000ff size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"> </SPAN></FONT></P>
<P class=EC_EC_EC_MsoNormal><FONT face=Arial color=#0000ff size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Vydaman</SPAN></FONT></P></FONT></SPAN></FONT><BR>
<HR>
Explore the seven wonders of the world <A href="http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE" target=_blank>Learn more!</A> <BR>
<HR>
Connect to the next generation of MSN Messenger <A href="http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline" target=_blank>Get it now! </A><BR>
<HR>
Get news, entertainment and everything you care about at Live.com. <A href="http://www.live.com/getstarted.aspx" target=_blank>Check it out!</A> <br /><hr />Connect to the next generation of MSN Messenger <a href='http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline' target='_new'>Get it now! </a></body>
</html>