Are you using Protean? I find Protean causes nasty videocard crashes on simple bugs that the standard IDE doesn't. I don't know quite what it is, but I assume it's something to do with the 3rd party integration of the debugger. I tend to code quickly and strip the bugs out later ( I don't recommend this technique ;) ) so I've given up Protean and gone back to the official IDE. It won't help you find the bug, but it might stop the machine resetting every time for you to be able to track down the bug.