Yeah these are fun.
Make a small "hello world" program and try that. If that works, try adding calls to any plugins you are using, one at a time, and see if one trips up on it.
Since it may not even be getting off the ground it is possible your code is not being hit, just the preamble EXE stuff (setting up dlls, dx9 stuff, etc.) which means you are missing something that is needed. But to confirm this you could write to a log file as the first line of your code. If you hit that then just trace through adding more logging until you find the line that is bad. But it is probably not even getting to your code.
I haven't seen this error since I loaded up DarkGameStudio on my new Win7 machine (brand new install), and tried compiling my projects right away (most demos worked). I had to upgrade to 7.5 in order to get things to work.

A 3D marble platformer using Newton physics.