When you ran the memory test, were any errors indicated? This could also be a heat issue associated with the on-board GPU (a DOS application would only use the basic VGA functions and not the full functionality of the GPU). Under Windows, with the proper driver installed, the GPU will operate at its full capacity and will generate more heat.
You may need to disassemble the Gateway and re-apply thermal compound on the GPU and clean the innards while you are in there.