I'm currently trying to create a game in C++17 with SDL2 (and SDL_ttf). When I'm trying to initialize the text renderer, I'm getting an error that says: "Exception thrown at 0x00007FFFB5A19116 (SDL2_ttf.dll) in projVSC.exe: 0xC0000005: Access violation reading location 0x0000000000000060." Currently using Visual Studio Community 2022. I'm getting the error in two places:
- The game.cpp file:
void Game::init() { if (SDL_CreateWindowAndRenderer(1280, 720, SDL_WINDOW_RESIZABLE, &window, &renderer) < 0) { std::cout
Источник: https://stackoverflow.com/questions/780 ... g-location
Мобильная версия