in reply to My code randomly stops working

You say " my system is prone to hanging...."

Please tell us (along with the other requested info) how you distinguish between "hanging" (system problem) and "randomly stops working" (code problem as id'ed in your title)


If you didn't program your executable by toggling in binary, it wasn't really programming!