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

Author Topic: SFML Debug mode not working ='(  (Read 454 times)

0 Members and 1 Guest are viewing this topic.

Fusix10

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
SFML Debug mode not working ='(
« on: March 15, 2025, 09:44:21 pm »
Hey !
some time ago i have done a 2d motor with sfml 2.6.1, i wanted to pass too 3.0.0 because i wanted to improve, after like 4h i manage to setup the 3.0.0 version,

but for some reason, in release mode my test code work, but in debug mode that fail, like, i can build but the code fail to work, and i see the typical 0x0000000000000000 on the error so the code try to use something not init, but only on debug mode not in release mode, I've been at it for 5 hours, i just can't understand what happen, i take any idea i will attach a lot of screenshot to help you !

i am french sry for my terrible english ='), and sry for the mess in the screenshot, 4 image wasn't enough =') if you need to see something more precise, just ask and I'll add a separate screenshot.

test code use :
#include <iostream>
#include <SFML/Graphics.hpp>

int main()
{
    // Create the main window
    sf::RenderWindow window(sf::VideoMode({ 800, 600 }), "SFML window");

    // Start the game loop
    while (window.isOpen())
    {
        // Process events
        while (const std::optional event = window.pollEvent())
        {
            // Close window: exit
            if (event->is<sf::Event::Closed>())
                window.close();
        }

        // Clear screen
        window.clear();

        // Update the window
        window.display();
    }
}
 

Fusix10.

Fusix10

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
Re: SFML Debug mode not working ='(
« Reply #1 on: March 16, 2025, 04:43:09 pm »
heyyyyy

i finaly find what the problem

i see my visual studio 2022 was not updated, so just need to update the visual and voila !

 

anything