How are you powering your device - you must not take significant power ( few mA) from the Arduino or you will over heat the regulator causing the board to shutdown.
You should see them in red ink in the output window of the sketch window in the IDE. If there are none, it may be because by default the IDE does not bother you with them.
Go to the IDE preferences, choose verbose output during compiling and dial up the warnings to all.
I fixed the problems the compiler warning brought to my attention, that I had seen, natuarlly
If you do the same it should help.
Before you fix your code, time how long it is before it jams.
After you fix your code, if it still jams, time how long before it jams.