<span class="gmail_quote">I am sorry, the mail before was send to early.<br><br></span>It seemed to be because I used multithreading, that i got the warnings, after I have added locks and other stuff found here <a href="http://www.mono-project.com/Responsive_Applications">http://www.mono-project.com/Responsive_Applications</a> it seems to have fixed the problem.<br>
<br><div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br><div><span class="gmail_quote">2008/4/8, Søren Juul &lt;<a href="mailto:zpon.dk@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">zpon.dk@gmail.com</a>&gt;:</span><div>
<span class="e" id="q_11933480b031cacb_1"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello<br><br>I am using pango change the layout of some labels:<br><br><span style="font-family: courier new,monospace;">Label urlLaben = null;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Pango.FontDescription font_desc = null;</span><br style="font-family: courier new,monospace;">


<span style="font-family: courier new,monospace;">font_desc = Pango.FontDescription.FromString (&quot;sans 11 bold&quot;);</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">urlLabel = new Label(&quot;n/a&quot;);</span><br style="font-family: courier new,monospace;">


<span style="font-family: courier new,monospace;">urlLabel.ModifyFont(font_desc);</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">urlLabel.SetAlignment(0.0f, 1.0f);</span><br clear="all">


<br>But when the application has been running for a short while i get a pango warning and the application dies.<br><br><blockquote>(mml:10381): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text()<br>

<br>
(mml:10381): Pango-WARNING **: shaping failure, expect ugly output. shape-engine=&#39;BasicEngineFc&#39;, font=&#39;DejaVu Sans 8&#39;, text=&#39;&#39;<br>Stacktrace:<br><br>Segmentation fault (core dumped)<br></blockquote>


<br>Why is this, and what can be done about it? The labels text are updated regularly (about once a second), can this be part of the problem?<br>-- <br>Med venlig hilsen / Kind regards<br><span>Søren Juul
</span></blockquote></span></div></div><div><span class="e" id="q_11933480b031cacb_3"><br><br clear="all"><br>-- <br>Med venlig hilsen / Kind regards<br>Søren Juul
</span></div></blockquote></div><br><br clear="all"><br>-- <br>Med venlig hilsen / Kind regards<br>Søren Juul