Hello.
If you have time then using a pen and paper just trace your program line by line.
You shall know what is causing the fault. And you may be able to fix it on your own.

Syed.