Hi I'm trying to show an error mesaage using a dialogbox. However when I run the code I get segmentation fault.
Here's the function:
void ShowErrorMessage(string message)
{
Gtk::MessageDialog dialog(message,true,Gtk::MESSAGE_ERROR,Gtk::BUTTONS_CLOSE,true);
dialog.run();
}
I try to open a file, if the file can not be open I wanna show this error box, however i keep running into segmentation fault.