Answer the question
In order to leave comments, you need to log in
Why does the program crash when trying to allocate memory with new?
https://github.com/fillows2/AOTD-Toster/tree/maste...
Crashes when clicking in the Menu >> Load Map window. Unable to allocate memory via slot MapEditorSFMLWidget::slot_LoadMap(); Through the class constructor "MapEditorSFMLWidget" *m_screen = new MapEditorScreen works fine
Answer the question
In order to leave comments, you need to log in
Use valgrind, it will show you where you are accessing the allocated memory or using uninitialized variables.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question