It seemed to be because i used multithreading, after i have added locks and other stuff<br><br><div><span class="gmail_quote">2008/4/8, Søren Juul <<a href="mailto:zpon.dk@gmail.com">zpon.dk@gmail.com</a>>:</span><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 ("sans 11 bold");</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">urlLabel = new Label("n/a");</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='BasicEngineFc', font='DejaVu Sans 8', text=''<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 class="sg">Søren Juul
</span></blockquote></div><br><br clear="all"><br>-- <br>Med venlig hilsen / Kind regards<br>Søren Juul