CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2007
    Location
    Bangalore,India
    Posts
    164

    Unhappy 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");
    when there is 'release' instead of debug it's working fine. Please help.

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,430

    Re: debug dll not working

    Quote Originally Posted by sujan.dasmahapatra View Post
    //////////////////////////////////////////
    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)
    //////////////////////////////////////////
    So, did you retry to debug the application? If not then why?
    Press the Retry button to see what happend in the appcore.cpp file around line: 451.
    Victor Nijegorodov

  3. #3
    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    3,654

    Re: debug dll not working

    So that means that you have a bug that the debug build helps you catch. Lucky you! It's more often the other way around.
    Debugging is twice as hard as writing the code in the first place.
    Therefore, if you write the code as cleverly as possible, you are, by
    definition, not smart enough to debug it.
    - Brian W. Kernighan

    To enhance your chance's of getting an answer be sure to read
    http://www.codeguru.com/forum/announ...nouncementid=6
    and http://www.codeguru.com/forum/showthread.php?t=366302 before posting

    Refresh your memory on formatting tags here
    http://www.codeguru.com/forum/misc.php?do=bbcode

    Get your free MS compiler here
    https://visualstudio.microsoft.com/vs

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured