<div>Hello everybody,</div><div><br></div><div>I am trying to develop a music manager using gtkmm. My program was successfully compiled. However, after running the executable file I got "Segmentation fault". I tried to debug it and here is the output in GDB:</div>
<div><br></div><div>    (gdb) </div><div>    Program received signal SIGSEGV, Segmentation fault.</div><div>     0x00389fdc in Gtk::UIManager::add_ui_from_string(Glib::ustring const&) ()</div><div>       from /usr/lib/libgtkmm-2.4.so.1</div>
<div>    (gdb) </div><div>    Single stepping until exit from function _ZN3Gtk9UIManager18add_ui_from_stringERKN4Glib7ustringE, </div><div>    which has no line number information.</div><div><br></div><div>    Program terminated with signal SIGSEGV, Segmentation fault.</div>
<div>    The program no longer exists.</div><div><br></div><div><br></div><div>The error above occurred at line 122 in file topwin.cpp:</div><div><br></div><div>122. menubar_ui->add_ui_from_string(ui_info);</div><div><br>
</div><div>I do not know why this happened. I just tried to create a menu in my application and added the xml string into the Gtk::UIManager.</div><div><br></div><div>Attached with this email is the source code and all the necessary files of the program. I hope that you guys can help me figure this error out! </div>
<div><br></div><div>Thank you for reading my message! Have a good day!</div><div><br></div><div><br></div><div>Best regards,</div><div><br></div><div><br></div><div>Phong Cao</div><div><br></div>