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

Author Topic: MacOS SDK 10.15 Crash  (Read 2351 times)

0 Members and 1 Guest are viewing this topic.

j.keller51

  • Newbie
  • *
  • Posts: 17
    • View Profile
MacOS SDK 10.15 Crash
« on: October 25, 2019, 04:16:59 pm »
Hi,

I updated XCode to 11.1 yesterday, which replaced the MacOS 10.14 SDK with 10.15. When I got things to compile again, this code caused a crash in renderWindow.create():

Quote
int main () {
   
    sf::Window window;
    window.create(sf::VideoMode(800,600), "My Window");
    sf::RenderWindow renderWindow;
    renderWindow.create(window.getSystemHandle());
   
    while (window.isOpen()) {
        sf::Event event;
        while (window.pollEvent(event)) {
            if (event.type == sf::Event::Closed)
                window.close();
        }
    }
   
    return 0;
}

Please note that this is a stripped down example of a much larger and more complex program, made to illustrate the crash. That is to say, there is a reason for the Window/RenderWindow dichotomy, but it's not relevant here.

I found the 10.14 SDK online, downloaded it and switched my project back to 10.14, and now everything runs as it should.