<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p><font face="Lucida Sans Unicode">Hi,</font></p>
<font face="Lucida Sans Unicode">My program using cairo read a text
file and gives values to some show_text vars.</font><br>
<font face="Lucida Sans Unicode">After several hours the program
(suid bit root to access hardware device) crashes the linux kernel
and as i can see this is because</font><br>
<font face="Lucida Sans Unicode">my cairo/text program consume all
the memory , step by step. I've heard that it's a known problem</font><br>
<font face="Lucida Sans Unicode">with cairo_show_text and i should
use "</font><font face="Lucida Sans Unicode"><font face="Lucida
Sans Unicode"><font face="Lucida Sans Unicode">cairo_debug_reset_static_data();"
to clear some cache but i don't know <br>
</font></font></font><font face="Lucida Sans Unicode"><font
face="Lucida Sans Unicode"><font face="Lucida Sans Unicode">how
to use it. Can anyone help ?</font></font></font><br>
<p><font face="Lucida Sans Unicode"><font face="Lucida Sans Unicode"><font
face="Lucida Sans Unicode">Thanks</font></font></font></p>
<font face="Lucida Sans Unicode"> </font><br>
Here's the small code:
<p><font size="2"><font face="Lucida Sans Unicode"> cairo_t
*cr = render_context;<br>
cairo_surface_t *surface;<br>
surface =
cairo_image_surface_create(CAIRO_FORMAT_ARGB32, OVERLAY_WIDTH,
OVERLAY_HEIGHT);<br>
render_context = cairo_create(surface);<br>
<br>
cairo_set_source (cr, couleur);<br>
cairo_set_operator (cr, CAIRO_OPERATOR_SOURCE);<br>
cairo_paint(cr);<br>
<br>
cairo_select_font_face(cr, "monospace",
CAIRO_FONT_SLANT_NORMAL,CAIRO_FONT_WEIGHT_BOLD);<br>
cairo_set_font_size(cr, 12.0);<br>
cairo_set_source_rgb(cr, 1.0, 1.0, 0.9);<br>
<br>
cairo_set_line_width(cr, 0.2);<br>
cairo_move_to (cr, 8,25);<br>
cairo_line_to (cr, 266,25);<br>
cairo_stroke (cr);<br>
<br>
cairo_move_to(cr, 8, 18);<br>
cairo_show_text(cr, match.joueur[0].nom);<br>
cairo_move_to(cr, 8, 40);<br>
cairo_show_text(cr, match.joueur[1].nom);</font></font><br>
</p>
<div class="moz-signature">-- </div>
</body>
</html>