ah weird. pygame should be able to clean itself up if you call sys.exit() ... I think. So that's probably a pygame bug. On 7/1/07, Kamilche <kamilche@xxxxxxxxxxxx> wrote:
Ian Mallett wrote: > By code I mean any program that works otherwise, by it crashes I mean I > have to quit using the taskmanager and endtask, and by how I quit I mean > > keystate = pygame.key.get_pressed() > for event in pygame.event.get(): > if event.type == pygame.QUIT or keystate[K_ESCAPE]: > sys.exit() > You should definitely 'pygame.quit()' before you quit the program.