Re: Memory Leak Issue

Tech-Archive recommends: Fix windows errors by optimizing your registry



In message <#10FyzOxGHA.3936@xxxxxxxxxxxxxxxxxxxx>, Oleg Starodumov <com-dot-debuginfo-at-oleg@?.?.invalid> writes
Btw, I heard that Memory Validator can only work with applications linked with
DLL version of CRT. Is it true?

Yes, if you want to track CRT allocations. You can still track everything else though (other Win32 memory allocators, 3rd party memory allocators, handle allocations, etc).

There is no IAT in statically linked apps, thus nothing to hook into.

Stephen
--
Stephen Kellett
Object Media Limited http://www.objmedia.demon.co.uk/software.html
Computer Consultancy, Software Development
Windows C++, Java, Assembler, Performance Analysis, Troubleshooting
.



Relevant Pages

  • Re: Are these memory leaks proper?
    ... memory separation concepts you mentioned. ... I see the dll are loaded in this order: ... So perhaps all the std::string allocations in app.exe are treated as leaks ... *.exe) with the same compiler, and often with the same version of one ...
    (microsoft.public.vc.mfc)
  • Re: Are these memory leaks proper?
    ... I see the dll are loaded in this order: ... So perhaps all the std::string allocations in app.exe are treated as leaks ... *.exe) with the same compiler, and often with the same version of one ... If you run with debug versions of both C runtimes, ...
    (microsoft.public.vc.mfc)
  • Re: porting Linux C++ shared objects to VC++ DLLs
    ... > I've got a ton of libraries that my customer wants ported from RedHat ... I'd suggest that you use the wizard to create an empty Win32 DLL project. ... have your caller do the same. ... allocations but that only exacerbates your porting problems). ...
    (microsoft.public.vc.language)
  • Re: Explicit loading does not work
    ... You can use memory mapped files or VirtualAlloc ... There is a "feature" in Windows CE to reuse XIP virtual addresses for operator new/ mallocallocations. ... I was thinking of explicitly loading empty stub 2-3MB dll during static data initialization. ... explicity load something useful I would unload stub dll, load required dll, do the job, and then put stub dll back ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: Memory Leak in WM application ??
    ... show you a log of unfreed allocations and allow you to click on one, ... problem with actual dynamic memory allocation because I know that I have to ... Application is in DLL form. ... leak, though used as a local variable. ...
    (microsoft.public.windowsce.embedded)