From WiiBrew
Jump to navigation Jump to search

Here's a thought on your crash: You are using the ir data without checking ir0.valid. I can't remember if I've seen this myself or not, but it seems possible that the ir data is outside the range you are expecting if the data isn't valid. See How to use the Wiimote for an example. Alternatively (or maybe Also) you can check that the values you are passing to Flip/Draw/etc are within the range you expect. I hope this helps. --PaceMaker 18:56, 20 October 2008 (UTC)

Another thought on the crash: I have had one of my games randomly crash too, and I found that I was leaking memory. Check that you free anything that you allocate, because you will leak memory otherwise. (It happened a lot faster for me, as I was working on a bullet hell game, and forgot to free the bullets XD) --SquidMan 03:15, 27 October 2008 (UTC)

I thought that was a problem too. thats why i made board always be maxsize, and only use the part of it that the player wants. it's not my fault, i come from python where guido and co. manage my memory.yossi 04:51, 27 October 2008 (UTC)