Does this happen for other dlls? If not, I'd say it's mdx.dll's fault.

Note that mdx.dll is not compatible with 7.x, so you should not use it. There have been many bug reports regarding the dll and 7.x. DCX is a good alternative.