0

My program is done. Thank You.

  • thanks for the cleanup, Kareem :) – Andrej Jul 7 '15 at 20:23
2

EDIT: (thanks Kareem for the cleanup of the OP)

Your initBall() function returns NULL.

You attempt to move the ball like this:

move(ball, velocity, 0);

so what would you say you're passing to the move function?

| improve this answer | |
  • It only started to crash when I started to move ball! Everything else is fine. – peter Jul 7 '15 at 19:36
  • what is in ball at the moment you move it though? More specifically, what does initBall return? – Andrej Jul 7 '15 at 20:25
  • Oh Thank you so much. – peter Jul 8 '15 at 13:40
  • if it's resolved you should probably mark it as such... regards, Andrej – Andrej Jul 25 '15 at 15:27

Not the answer you're looking for? Browse other questions tagged .