[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[pygame] crash when quiting, initing, quiting...



Hello,

I've just started using pygame instead of glut for my program.

One of the reasons I moved was that glut does not have a way to quit the main 
loop, and get back into your program.

I get the crash after doing the following:

pygame.init()

pygame.display.quit()
pygame.display.init()

do stuff...

pygame.display.quit()

now I have my interpreter open and I do the equivalent of:
for x in range(10)
  pygame.display.init()
  do stuff...
  pygame.display.quit()


Except it usually segfaults after a few goes.

Can anyone see what I'm doing wrong?  If someone wants to help, and they need 
the source code I'll be happy to send it along :)

I tried using pygame.init() and pygame.quit() instead but it still crashes.



Thanks in advance for any help.
____________________________________
pygame mailing list
pygame-users@seul.org
http://pygame.seul.org