Re: Debugging question

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



You have a memory allocation at line 658 of your vldutil.cpp program. It allocates an object that
is 132 bytes in size. You are not freeing this memory when you are done with it before the program
ends. Hence, the numerous leaks.

<chuayongquan@xxxxxxxxxxx> wrote in message
news:1121051560.985832.218050@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I have a memory leak in my program. Now how do I read the following
messages:


Info: AfxDllCanUnloadNow returning S_OK
Detected memory leaks!
Dumping objects ->
{14831} normal block at 0x0118F5C0, 424 bytes long.
Data: <<?xml version="1> 3C 3F 78 6D 6C 20 76 65 72 73 69 6F 6E 3D 22
31
C:\Projects\vld\vldutil.cpp(65­8) : {13120} client block at
0x0118EF28,
subtype bf42, 132 bytes long.
an invalid object at $0118EF28, 132 bytes long
[etc...]
The thread 0xEF0 has exited with code -1073741819 (0xC0000005).
The thread 0xD60 has exited with code -1073741819 (0xC0000005).
The thread 0xFCC has exited with code -1073741819 (0xC0000005).
The thread 0x3A4 has exited with code -1073741819 (0xC0000005).
The thread 0xAFC has exited with code -1073741819 (0xC0000005).
The thread 0x8BC has exited with code -1073741819 (0xC0000005).
The thread 0xAB0 has exited with code -1073741819 (0xC0000005).


Can anyone help. Thx...


.



Relevant Pages

  • Re: allocating memory.
    ... So what would be the ASM equivalent of new memory ... Memory allocation is primarily an OS responsibility, ... OSes are almost certainly responsible for memory ...
    (alt.lang.asm)
  • Re: Doubts on Defining and declaring variables
    ... 1.Dim iage ... and allocate memory for each of them ... My understanding:-Still No memory allocation done at this ... Now since string is assigned to iage,So will ...
    (microsoft.public.scripting.vbscript)
  • Re: xmalloc string functions
    ... require memory allocations depending on the way the system works. ... Not enough context for most real-world applications to ... It is /more/ reliable to routinely auto-save the user's work (as you ... particularly if your auto-save code is robust against memory allocation ...
    (comp.lang.c)
  • Re: "Criticism of the C programming language ??????"
    ... whatever) is that GC only affects memory allocated by GC_malloc. ... other applications and third party libraries will use it too? ... I didn't see how that could be true since, like KT, I was thinking of garbage collection integrated into the language itself. ... In a later message, after a burst of silly and pointless sarcasm, you were persuaded to explain that you were talking about an additional memory allocation library which would support garbage collection for memory it controlled. ...
    (comp.lang.c)
  • Re: Steady State ?
    ... It helps when you provide the context for the quote. ... which places special emphasis on memory allocation issues ... In the context of the article, non-fragmenting memory allocation ... If dynamic memory allocation is added in, ...
    (comp.lang.c)