[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[pygame] PyGame crash upon set_mode
- To: pygame-users@seul.org
- Subject: [pygame] PyGame crash upon set_mode
- From: Jeffrey Drake <jpt.d@rogers.com>
- Date: Tue, 25 Dec 2001 03:23:53 -0500
- Delivered-To: archiver@seul.org
- Delivered-To: pygame-users-outgoing@seul.org
- Delivered-To: pygame-users@seul.org
- Delivery-Date: Tue, 25 Dec 2001 03:24:45 -0500
- Reply-To: pygame-users@seul.org
- Sender: owner-pygame-users@seul.org
- User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.4) Gecko/20011019 Netscape6/6.2
My Programs output:
Initializing PyGame [ Ok ]
Initializing Display Fatal Python error: (pygame
parachute) S
egmentation Fault
abnormal program termination
I added in everything else after (the other display.* lines), the
original line was display.set_mode. It crashes if I give it any flags.
It doesn't crash if I don't pass any flags. I am perplexed by this.
Any help would be appreciated.
Regards,
Jeffrey Drake
The Program itself: (main part)
def main():
""" Initialization Point of the Program """
Status.SetNotifyLength(30)
Status.SetResultLength(5)
Status.Notify("Initializing PyGame")
pygame.init()
Status.Result("Ok")
Status.Notify("Initializing Display")
display.init()
vi = display.Info()
modes = display.list_modes()
if (640,480) in modes:
surface = display.set_mode((640, 480), vi.bitsize, FULLSCREEN)
Status.Result("Ok")
Status.Notify("Exiting")
display.quit()
Status.Result("Ok")
____________________________________
pygame mailing list
pygame-users@seul.org
http://pygame.seul.org