@Iznougoud:
Did you check the power supply and ventilation on the 040?
Random lockups are common with bad power supplies (due ripple) and when the 040 goes too hot.
Even if you don't have a oscilloscope, you can check the ripple on the +5V line using a humble digital multimeter (simply put it on the smallest AC scale and read the LCD). Acceptable "noise" is in the 50mV tops!