Well, that's the problem then. You can't rename the release DLL to the same name as the debug DLL. That function is a debug function and is not compiled into the release DLL.

Either compile in release, and link with the release CRT library; or compile in debug and link with the debug CRT library.

Viggy