Re: strange memory leak problem

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



I am a little bit confused. The DLL here I am talking about is the COM
component. And the final memory deallocation is done in the COM object
destructor. The problem is if calling _CrtDumpMemoryLeaks at this time
is meaningless when I should call it then? Thanks.

Timmy

On Sep 5, 10:12 pm, Joseph M. Newcomer <newco...@xxxxxxxxxxxx> wrote:
You can assume that calling _CrtDumpMemoryLeaks is meaningless at this point. It can only
report memory that has been allocated in the default heap and not deallocated, but this
has nothing to do with the DLL or its existence. So it is entirely possible that you will
have allocated memory at the time this DLL exits, that has been allocated by components
other than the DLL.
joe




.



Relevant Pages

  • Re: Why do we need executables in certain formats ?
    ... > complex binary formats was that programs need to be relocated, ... > perhaps linked with libraries. ... Modern virtual memory processors can locate to ... > has a hidden problem with the new .DLL. ...
    (comp.lang.asm.x86)
  • Re: Why is Base3.exe using 700+ K in windows task manager ?
    ... DLL function. ... handles opened by any thread of the calling process ... The DLL allocates memory from the virtual address space of the calling ... Who can tell where memory is really located in a virtual adress space? ...
    (alt.lang.asm)
  • Re: shared DLL VS static Link, Are they different?
    ... MFC exits, and if there is any memory that is freed at that time, MFC will ... business dumping leaks; it should wait until the CRT DLL dumps leaks after ... ALL RESOURCES OWNED BY THAT PROCESS ARE RELEASED. ...
    (microsoft.public.vc.mfc)
  • Re: Linking to a .NET dll from C#
    ... for obtaining price quotes and performance is absolutely critical. ... be to use shared memory or memory mapped files. ... Be aware that in these scenarios you're responsible for patching and updates, as the application will no longer rely on the clients machine to keep the framework up to date. ... Determine if a certain managed .NET dll or assembly is loaded ...
    (microsoft.public.dotnet.general)
  • Re: Memory Management Tools
    ... Memory limits in 32 Bit world. ... There is still a fairly high risk in moving ... One area where real optimization actually is possible is DLL rebasing. ... Well, the Windows loader, which loads the DLL into memory (which in ...
    (microsoft.public.windows.terminal_services)