Hi all,<br><br>I got problem trying to load an image to a gtkmm using pixbuf's create_from_file() in scratchbox. Here is the snippet of code:<br><div style="margin-left: 40px;"> std::auto_ptr<Glib::Error> err;<br>
</div> cout << "Start to load logo" <<endl;<br> image = Gdk::Pixbuf::create_from_file("./icons/logo.png",err);<br> Glib::ustring err_str = err2->what();<br>
cout << "Error message = " << err_str<<endl;<br> cout << "Finish to load logo" <<endl;<br>These lines are taken from a DrawingArea widget's constructor with 'image' variable of type Glib::RefPtr<Gdk::Pixbuf>.<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 './icons/home.png': No such file or directory<br>Finish to load logo<br><br>Could anyone suggest the reason behind this? <br><br>Regards<br><br>