Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

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.


Messages - NewbieProgrammer

Pages: [1]
1
General / Test Code ends with Exception
« on: February 06, 2025, 11:45:35 am »
Hello, I'm very new to SFML and pretty much very beginner in C++, knowing core basics, so I decided to better it with SFML. I downloaded the latest 3.0.0 version of SFML for Visual Studio 2022 on Windows 10. Did everything like in Tutorial on website, pasted the test code and on the second line of test code: 
     
 sf::RenderWindow window(sf::VideoMode({200, 200}), "SFML works!");
I got an exception that stated:
             
_Mtx_internal_imp_t::_get_cs(...)-> was nullptr.
I tried googling this error for SFML but one discussion I found for different library said not to touch anything in the code. I then downloaded 2.6 version, reconnected it and it worked (drew circle). So, my guess, it may have something to do with the version. Is something wrong with my system or something with the SFML that it crashes like that, and can it be fixed?

Pages: [1]