Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - JS Lemming

Pages: [1]
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:
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.

Pages: [1]
anything