封装好Dll后调试出现的有关问题

封装好Dll后调试出现的问题
Debug Assertion Failed!

Program:...
File:f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\appcore.cpp
Line:421
For information on how your program can cause an assertion
failure, see the Visual C++ documentation on asserts.

(Press Retry to debug the application)

出现上面问题,大侠帮忙看下,怎么解决。主要可能有哪些地方出错,谢谢了

------解决方案--------------------
Press Retry to debug
检查参数是否合法,调用栈逐级查找哪里导致非法参数向下传递。