1
Python / Python binding buggy?
« on: January 23, 2011, 09:09:24 pm »
I can confirm there is a problem.
In the worms demo, it crashes after selecting a difficulty. "Python.exe has stopped working."
It would appear to crash after running this line twice:
I found that by putting prints in places closer and closer to the crash point.
it prints "Before After Before" and then crashes.
I'm using python 2.6.6
I've tried this with Win7 32Bit and Win7 64Bit. It works, however, on WinXP 32Bit.
In the worms demo, it crashes after selecting a difficulty. "Python.exe has stopped working."
It would appear to crash after running this line twice:
Code: [Select]
self['arena_rect'] = sf.Shape.Rectangle(self.arena_left, self.arena_top, self.arena_right, self.arena_bottom, sf.Color.Black)
I found that by putting prints in places closer and closer to the crash point.
Code: [Select]
def update_arena_rect(self):
print "before"
self['arena_rect'] = sf.Shape.Rectangle(self.arena_left, self.arena_top, self.arena_right, self.arena_bottom, sf.Color.Black)
print "after"
it prints "Before After Before" and then crashes.
I'm using python 2.6.6
I've tried this with Win7 32Bit and Win7 64Bit. It works, however, on WinXP 32Bit.