Re: "Debug" dll in "Release" application



Tom wrote:

I put "generation debug information" but it did not help.
Is there any Microsoft article that Debug and Release mixing is not permitted?

Tom:

It is permitted, but you have to be very careful. It is the same as with different versions of the compiler (debug and release are like different compilers, really).

You can make it work by

1. Being careful about the types you pass across the DLL boundary (no library objects). [This may not matter for debug/release of the same compiler, but it is a good thing to do if you can.]

2. Always using "delete" in the same place that you "new".

David Wilkinson
.



Relevant Pages

  • Re: debugging in release mode
    ... I have no doubt that it's a problem of mine and not of the compiler. ... I don't really need optimization ... for the sake of memory space or execution speed. ... shows the differences between the default debug mode and the default release ...
    (microsoft.public.vc.mfc)
  • Re: Whats more important optimisations or debugging?
    ... aiming to make high level debugging as accurate and complete as ... oriented debug chain is appropriate. ... But in either case, barring chip and compiler bugs, the bugs ...
    (comp.arch.embedded)
  • Re: Output dll bigger with VS 2005
    ... This is the first part of the map file of a debug dll compiled with VS2005 ... For a little more information on the .map files I recommend this article ... Microsoft Windows CE Compiler Team ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: VS crash after debug
    ... Exception Information ... I think this error message is much more helpful. ... further check and did find some "Visual Basic internal compiler error" ... The problem is only after a debug session. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Execution time debug vs. release
    ... The cause fo this at least for us is the newly introduced STL ... debugging features that have been added in VS2005 C++ compiler. ... but when compiled in debug mode takes almost 40 seconds with 100% CPU ... speed with Task Manager showing 0% CPU time. ...
    (microsoft.public.vc.mfc)