debug dll not working
-
I have an extension dll. when I am building the dll in release mode, and call from the client mfc application it's launching, but when I am bulding the dll in debug mode and loading from client mfc application it's not launching giving error ////////////////////////////////////////// debug assertion failed. program: file: f:\dd\cvtools\vc7libs\ship\atlmfc\src\mfc\appcore.cpp line: 451 For more information on how your program can cause assertion failure, see visual c++ documentation on asserts (Please retry to debug the application) ////////////////////////////////////////// Please help me why this error is coming I am trying to launch the dll like this [code] hinstLib = LoadLibrary(L"C:\\Users\\sujan.dasmahapatra\\Documents\\Projects\\Bhagavan_SurfaceRevolution\\View inside a Dialog\\package\\RevolutionDLL\\debug\\dlltest.dll"); [/code] when there is 'release' instead of debug it's working fine. Please help.
-
I have an extension dll. when I am building the dll in release mode, and call from the client mfc application it's launching, but when I am bulding the dll in debug mode and loading from client mfc application it's not launching giving error ////////////////////////////////////////// debug assertion failed. program: file: f:\dd\cvtools\vc7libs\ship\atlmfc\src\mfc\appcore.cpp line: 451 For more information on how your program can cause assertion failure, see visual c++ documentation on asserts (Please retry to debug the application) ////////////////////////////////////////// Please help me why this error is coming I am trying to launch the dll like this [code] hinstLib = LoadLibrary(L"C:\\Users\\sujan.dasmahapatra\\Documents\\Projects\\Bhagavan_SurfaceRevolution\\View inside a Dialog\\package\\RevolutionDLL\\debug\\dlltest.dll"); [/code] when there is 'release' instead of debug it's working fine. Please help.
sujandasmahapatra wrote:
when there is 'release' instead of debug it's working fine
probably not. but debug assertions don't happen in release mode. they're there to tell programmers that something seriously wrong has happened. your best bet is to duplicate the problem in a debugger then see why that assertion is happening. then fix the problem.
-
I have an extension dll. when I am building the dll in release mode, and call from the client mfc application it's launching, but when I am bulding the dll in debug mode and loading from client mfc application it's not launching giving error ////////////////////////////////////////// debug assertion failed. program: file: f:\dd\cvtools\vc7libs\ship\atlmfc\src\mfc\appcore.cpp line: 451 For more information on how your program can cause assertion failure, see visual c++ documentation on asserts (Please retry to debug the application) ////////////////////////////////////////// Please help me why this error is coming I am trying to launch the dll like this [code] hinstLib = LoadLibrary(L"C:\\Users\\sujan.dasmahapatra\\Documents\\Projects\\Bhagavan_SurfaceRevolution\\View inside a Dialog\\package\\RevolutionDLL\\debug\\dlltest.dll"); [/code] when there is 'release' instead of debug it's working fine. Please help.
sujandasmahapatra wrote:
file: f:\dd\cvtools\vc7libs\ship\atlmfc\src\mfc\appcore.cpp
line: 451Debug your code (single step), go to that line number and see what's asserting. Read this excellent essay: Surviving the release build[^]
"Real men drive manual transmission" - Rajesh.
-
I have an extension dll. when I am building the dll in release mode, and call from the client mfc application it's launching, but when I am bulding the dll in debug mode and loading from client mfc application it's not launching giving error ////////////////////////////////////////// debug assertion failed. program: file: f:\dd\cvtools\vc7libs\ship\atlmfc\src\mfc\appcore.cpp line: 451 For more information on how your program can cause assertion failure, see visual c++ documentation on asserts (Please retry to debug the application) ////////////////////////////////////////// Please help me why this error is coming I am trying to launch the dll like this [code] hinstLib = LoadLibrary(L"C:\\Users\\sujan.dasmahapatra\\Documents\\Projects\\Bhagavan_SurfaceRevolution\\View inside a Dialog\\package\\RevolutionDLL\\debug\\dlltest.dll"); [/code] when there is 'release' instead of debug it's working fine. Please help.
"Break" execution when the assertion is hit, then look at what the assertion is telling you. You can see what has been asserted (example):
//assert that a pointer is not NULL
ASSERT( pWnd );
//OR
ASSERT( pWnd!=NULL );Then you can look at the call stack and trace back to your code (instead of looking at the mfc portion that triggered the assertion). You probably forgot to initialize something or did something incorrectly within the framework.
-
I have an extension dll. when I am building the dll in release mode, and call from the client mfc application it's launching, but when I am bulding the dll in debug mode and loading from client mfc application it's not launching giving error ////////////////////////////////////////// debug assertion failed. program: file: f:\dd\cvtools\vc7libs\ship\atlmfc\src\mfc\appcore.cpp line: 451 For more information on how your program can cause assertion failure, see visual c++ documentation on asserts (Please retry to debug the application) ////////////////////////////////////////// Please help me why this error is coming I am trying to launch the dll like this [code] hinstLib = LoadLibrary(L"C:\\Users\\sujan.dasmahapatra\\Documents\\Projects\\Bhagavan_SurfaceRevolution\\View inside a Dialog\\package\\RevolutionDLL\\debug\\dlltest.dll"); [/code] when there is 'release' instead of debug it's working fine. Please help.
-
I have an extension dll. when I am building the dll in release mode, and call from the client mfc application it's launching, but when I am bulding the dll in debug mode and loading from client mfc application it's not launching giving error ////////////////////////////////////////// debug assertion failed. program: file: f:\dd\cvtools\vc7libs\ship\atlmfc\src\mfc\appcore.cpp line: 451 For more information on how your program can cause assertion failure, see visual c++ documentation on asserts (Please retry to debug the application) ////////////////////////////////////////// Please help me why this error is coming I am trying to launch the dll like this [code] hinstLib = LoadLibrary(L"C:\\Users\\sujan.dasmahapatra\\Documents\\Projects\\Bhagavan_SurfaceRevolution\\View inside a Dialog\\package\\RevolutionDLL\\debug\\dlltest.dll"); [/code] when there is 'release' instead of debug it's working fine. Please help.
The assertion is telling you the file name and the line number in the file. Have a look there and read the comment which no doubt accompanies the assertion.
Steve