Application keeps on rebooting

I made a program using C# with .NetClix as reference, I deployed it to my Chipworkx successfully though, it will suddenly reboot at one point. Is my program the problem or the device itself?

Without more information, I would have to say it is your program.

Have you tried to run the program under the VS debugger to see what is happening when the device resets?