Open Milerius opened 7 years ago
Have you tried running it through valgrind with memcheck? It will tell you if you overwrite some memory at an earlier point in your code, which could be causing undefined behaviour later on.
For reference: valgrind --tool=memcheck ./<executable>
Try calling ett.reset()
before you dispose of all the systems (i.e. before the entity manager goes out of scope).
Hello, i'm not sure but i have a strange bug when i reach the end of my program using entityx.
current context :
The systems are all separate in different DLL, i load them with the function systems.add(shared_ptr) :
the main game loop :
creation of entity and assignement of a Components who represents a window :
update of the Window System :
and this is what happened when i click on the cross of the SFML Window :
This bug dont seem's to appear on Linux, or Window, only on my macOs, (i tried on Linux this works)
Sorry for my english.
Best regards.