You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following program crashes during destruction of an empty sf::String:
#include <SFML/Window.hpp>
int main()
{
sf::String s = ""; // (the = "" is optional)
}
Consequently, the same happens when creating a window with an empty title.
The error message is:
main(73755) malloc: *** error for object 0x10000d7e0: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
Changing the line to
sf::String s = "non-empty";
makes the crash go away.
This bug started to appear in my code right after switching to SFML 2.0 stable
this afternoon (before I did not have an sf::String class). I am on MacOS 10.6.8
and I use either g++ or clang++ to compile the program from the command line,
e.g.:
clang++ -framework sfml-system -framework sfml-window -o main main.cpp
The text was updated successfully, but these errors were encountered:
The following program crashes during destruction of an empty sf::String:
Consequently, the same happens when creating a window with an empty title.
The error message is:
Changing the line to
makes the crash go away.
This bug started to appear in my code right after switching to SFML 2.0 stable
this afternoon (before I did not have an sf::String class). I am on MacOS 10.6.8
and I use either g++ or clang++ to compile the program from the command line,
e.g.:
The text was updated successfully, but these errors were encountered: