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

Author Topic: You cannot use the screensaver on this computer (MacOsx 10.6.8, SFML 2.0, xcode  (Read 12197 times)

0 Members and 1 Guest are viewing this topic.

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
I don't know exactly how gc works but the current implementation doesn't use it at all; retain/release are used. Apple's doc on gc might explain how one can make an app compatible with it.
SFML / OS X developer

Acrobat

  • Full Member
  • ***
  • Posts: 153
    • View Profile
this program will crash on exit with GC supported :

int main (int argc, const char * argv[])
{
    sf::RenderWindow window(sf::VideoMode(1024, 768), "");
   
    while (window.isOpen()) {
        sf::Event event;
        while (window.pollEvent(event)) {
            if (event.type == sf::Event::KeyPressed && event.key.code == sf::Keyboard::Escape) window.close();
        }
        window.clear();
        window.display();
    }
   
    return 0;
}
 

The problem is deep in osx implementation.

 

anything