Hi all,<br><br>I got problem trying to load an image to a gtkmm using pixbuf&#39;s create_from_file() in scratchbox. Here is the snippet of code:<br><div style="margin-left: 40px;">&nbsp; std::auto_ptr&lt;Glib::Error&gt; err;<br>
</div>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; cout &lt;&lt; &quot;Start to load logo&quot; &lt;&lt;endl;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; image = Gdk::Pixbuf::create_from_file(&quot;./icons/logo.png&quot;,err);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Glib::ustring err_str = err2-&gt;what();<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; cout &lt;&lt; &quot;Error message = &quot; &lt;&lt; err_str&lt;&lt;endl;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; cout &lt;&lt; &quot;Finish to load logo&quot; &lt;&lt;endl;<br>These lines are taken from a DrawingArea widget&#39;s constructor with &#39;image&#39; variable of type Glib::RefPtr&lt;Gdk::Pixbuf&gt;.<br>
<br>The output is:<br><br>Start to load i2rlogo<br>qemu: uncaught target signal 11 (Segmentation fault) - exiting<br><br>if I change the path to the image file that makes it wrong path, no segmentation fault error:<br><br>
Start to load logo<br>Error message = Failed to open file &#39;./icons/home.png&#39;: No such file or directory<br>Finish to load logo<br><br>Could anyone suggest the reason behind this? <br><br>Regards<br><br>