I had a similar problem. The reason was that my video card supported 16 and 32 bit, and my monitor supported 16 and 24. So, the editor could not work with 24 or 32. Changing to 16 solved the problem. Since that was too much hassle (most of my programs are set for 32), I switched the monitor. There are so many elements that have to interact for your computer to work! I suggest you post the specifications of your sound and video cards, your monitor, your hard drive, your ram (including type), etc. The solution may be in making your settings compatible with all your hardware elements. Check also the acceleration and the rest of your hardware settings in the Device Manager.
I also thought I had a corrupt file. But it was a compatibility issue between the monitor and the hard drive. See, the first line DB was reading was the monitor resolution. And since it was incompatible with the settings, DB couldn't compile.