My debugger tells me it's a SIGSEGV (Segmentation Fault), when the app come to : group->add(button1, "button");
I have absolutely no idea of what this means :/
I have absolutely no idea of what this means :/
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menuclass Application
{
public:
Application();
sf::RenderWindow window;
tgui::Gui tgui; // GUI
protected:
private:
};
int main()
{
Application app;
Mainmenu(&app);
return 0;
}
Application::Application()
{
// Some code
// Graphical User Interface
Application::tgui.setTarget(Application::window); // setting my tgui object on my window object
try
{
auto button1 = tgui::Button::create();
auto group = tgui::Group::create();
group->add(button1, "button"); // CRASH
}
catch (const tgui::Exception& e)
{
std::cerr << "TGUI Exception: " << e.what() << std::endl;
}
}