My BlitzMax app crashes and I don't know why. The flowing function from my type TPlayer contains the bug.
When I comment out the lines from drawTriangle... to Return it works. Two hours past and still I didn't find the bug.
Thanks, Nicolas.
Function createPlayer:TPlayer() Local player:TPlayer = New TPlayer player.x = MouseX() player.y = MouseY() Local point1:TPoint = TPoint.createPoint(player.SIZE / 2, 0) Local point2:TPoint = TPoint.createPoint(player.SIZE, player.SIZE) Local point3:TPoint = TPoint.createPoint(0, player.SIZE) drawTriangle(point1, point2, point3) player.image = CreateImage(player.SIZE, player.SIZE) GrabImage(player.image, 0, 0) Return player EndFunction
When I comment out the lines from drawTriangle... to Return it works. Two hours past and still I didn't find the bug.
Thanks, Nicolas.