CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Ralf Schneider

Search: Search took 0.07 seconds.

  1. Replies
    17
    Views
    22,667

    Re: Show memory leaks in dll?

    see post #7 !
  2. Replies
    17
    Views
    22,667

    Re: Show memory leaks in dll?

    Hello Ovidiu,

    the DLLs are not developed by me. I have to use it and find the bugs!!!!!
    Very bad....
    But do not think about further. My problem is solved for the moment.

    Ralf
  3. Replies
    17
    Views
    22,667

    Re: Show memory leaks in dll?

    e.g.

    char* zz=new char[10]; // without releasing later!

    somewhere in the code.
  4. Replies
    17
    Views
    22,667

    Re: Show memory leaks in dll?

    maybe there are no memory leaks?
    Then there is no report!
  5. Replies
    17
    Views
    22,667

    Re: Show memory leaks in dll?

    Hello,

    do you refer to my link?
    In MFC you do not need it. The leaks will be shown at the end of the programme in debug mode with VC++ automatically.

    Ralf
  6. Replies
    17
    Views
    22,667

    Re: Show memory leaks in dll?

    Hallo Alex,

    thx. The problem were C++ new.
    I found this and it helps:
    http://social.msdn.microsoft.com/forums/en-US/vcgeneral/thread/5a98b72e-c927-4f4b-9441-8a73575dfb10/

    Ralf
  7. Replies
    17
    Views
    22,667

    Re: Show memory leaks in dll?

    Hello Alex,

    thx. I am one step further!
    The calling app is mfc. The dll non-mfc.
    Now, I included
    #define _CRTDBG_MAP_ALLOC
    #include <stdlib.h>
    #include <crtdbg.h>
    in the header files of the...
  8. Replies
    17
    Views
    22,667

    Re: Show memory leaks in dll?

    It have!!!!
    To check it, I write this code:
    char* fgh=new char[10];
    But it will not be shown.

    Ralf
  9. Replies
    17
    Views
    22,667

    Show memory leaks in dll?

    Hello,

    when ending my app in the debugger, memory leaks will be shown like this:
    Detected memory leaks!
    Dumping objects ->
    C:\PROGRAM FILES\VISUAL STUDIO\MyProjects\leaktest\leaktest.cpp(20) :...
Results 1 to 9 of 9





Click Here to Expand Forum to Full Width

Featured