I just realize that you're trying to embed the emulator... don't do that with -video d3d, it could be causing the crash (at least full screen switching is known to crash in embedded mode with -video d3d). QMC2's embedder on Windows is also not the cleanest thing hacked on Earth smile!

A mind is like a parachute. It doesn't work unless it's open. [Frank Zappa]