That&#39;s a good point, I will change this.<div><br></div><div>I finally found what my problem was: it was the name that was blank (&quot;&quot;), thus the name error...</div><div><br></div><div>Now I&#39;m in a totally different mess: my unit tests fail with SIGSEV because something is going havoc during class destruction...</div>
<div><br></div><div>I&#39;m installing Kdevelop because gdb is a little hard to use in such weird multi threaded bugs...</div><div><br></div><div>Thanks for the advice,</div><div><br></div><div>Gaspard<br><br><div class="gmail_quote">
On Thu, May 7, 2009 at 3:34 PM, Robin Perkins <span dir="ltr">&lt;<a href="mailto:robin.perkins@internode.on.net">robin.perkins@internode.on.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div style="word-wrap:break-word"><div><div></div><div class="h5"><br><div><div>On 07/05/2009, at 7:10 AM, Gaspard Bucher wrote:</div><br><blockquote type="cite"><div>Hi list !<br><br>I am trying to port some code from dns-sd to avahi and I get an<br>
&quot;Invalid service name&quot; error...<br><br>Any idea why a service name like &quot;_oscit._udp&quot; fails ?<br><br>Since the project is open source, the code is visible at<br><a href="http://tinyurl.com/d4ypf5" target="_blank">http://tinyurl.com/d4ypf5</a><br>
<br>Thanks for any advice...<br><br>Gaspard<br><br></div></blockquote></div><br></div></div><div>Have you tried putting this in as a literal string [ &quot;_oscit._udp&quot;], rather than as a variable that you convert to a c string [<span style="font-family:&#39;Bitstream Vera Sans Mono&#39;;line-height:17px;white-space:pre"><span style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;line-height:1.4em">master_</span><span style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;line-height:1.4em;font-weight:bold">-&gt;</span><span style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;line-height:1.4em">service_type_</span><span style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;line-height:1.4em">.</span><span style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;line-height:1.4em">c_str</span><span style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;line-height:1.4em">() ]<span style="font-family:Helvetica;line-height:normal;white-space:normal"> ? Unless your using subtypes the service type is static in most cases.</span></span></span></div>
<div><br></div><div>Rob</div></div><br>_______________________________________________<br>
avahi mailing list<br>
<a href="mailto:avahi@lists.freedesktop.org">avahi@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/avahi" target="_blank">http://lists.freedesktop.org/mailman/listinfo/avahi</a><br>
<br></blockquote></div><br></div>