Pygame Exiting Problem

Started by
1 comment, last by Geometrian 16 years, 11 months ago
When I quit my program, one of two things happens: 1: The program exits to the desktop 2: The program exits to the desktop and the screen starts flashing black. if 2, then it will only stop flashing when you run another program. When I exit this program, 1 or 2. This is annoying. I need to know what exactly is wrong. My display mode is OpenGL and I'm using sys.exit(1) to exit.

[size="1"]And a Unix user said rm -rf *.* and all was null and void...|There's no place like 127.0.0.1|The Application "Programmer" has unexpectedly quit. An error of type A.M. has occurred.
[size="2"]

Advertisement
Are you running pygame.quit() at the end of your program? You need to.
Do I put it in the quit function, or at the very end of the program and not use sys.exit()?

[edit: ok, it's working 100% of the time now, thanks!!]

[size="1"]And a Unix user said rm -rf *.* and all was null and void...|There's no place like 127.0.0.1|The Application "Programmer" has unexpectedly quit. An error of type A.M. has occurred.
[size="2"]

This topic is closed to new replies.

Advertisement