Update and Things Break

Mar 11, 2014 at 6:29am
I just installed a new version of Code Blocks (13.12) and the most recent version of the TDM GCC compiler (4.8), and now the code I have crashes at run time and I have no idea why. I debugged my code and it seems to crash on std::vector< std::vector<double> > hudPolygon(0); and returns -1073741510 (0xC0000005).
Does anyone have any idea what this means or how to fix it?
Mar 11, 2014 at 3:19pm
What does the call stack show?
Mar 11, 2014 at 4:23pm
I got rid of that line and now it gives me the same error from
sf::Window App(sf::VideoMode(intDisplaySizeW, intDisplaySizeH, 32), "Tower Defense - 100%");

The call stack is
#0 691C4AF9	sf::VideoMode::VideoMode(unsigned int, unsigned int, unsigned int) () (D:\MyDocs\Documents\C++\TD\trunk\bin\Debug\sfml-window-2.dll:??)
#1 00404045	main() (D:\MyDocs\Documents\C++\TD\trunk\main.cpp:105)
Mar 11, 2014 at 5:01pm
SFML is very compiler sensitive. You probably need to compile SFML with your new compiler.
Mar 11, 2014 at 5:59pm
You're doing a full rebuild right? As in 'ctrl+F11'? Have you tried nuking the projects object files and rebuilding?
Mar 12, 2014 at 3:55am
Yeah. I just tried that and nothing changed.
Mar 12, 2014 at 6:41pm

Update and Things Break


Welcome to the wonderful world of coding!
Last edited on Mar 12, 2014 at 6:42pm
Mar 13, 2014 at 6:38am
@DeadEli
Have you tried doing what @htirwin suggested? I had problems as well with SFML when changing compiler: You need to rebuild the actual SFML libraries. It isn't that hard, there should be a tutorial for it somewhere on the website.
Mar 14, 2014 at 6:12am
Rebuilding it fixed my problem. Thanks.
Topic archived. No new replies allowed.