Original Post
Hi It seems my engine has a few memory leaks (15 to be precise) I have created an app with nothing going on other then creating a window and DirectX device then rendering nothing until the end. When I exit i get 15 DirectX warnings and a message box from ntdll.dll saying there has been some memory leaks. Okay so now ive installed purify and ive got the report back saying where the leaks are coming from. The problem is that i dont realy get which bit of my code evokes the problems if at all. Kernal32.dll and User32.dll are beyond my knowledge. Heres the report does anyone know how i can gleam some useful informiation from this?
Summary of all memory leaks... {2768 bytes, 8 blocks}
MPK: Potential memory leak of 1964 bytes from 1 block allocated in GetMenuCheckMarkDimensions [USER32.dll]
Offset 0x0000068c referenced by 0x00742743, a location in a section in the executable
Distribution of potentially leaked blocks
1964 bytes from 1 block of 1964 bytes (0x0015b1e0)
Allocation location
LocalAlloc [C:\WINDOWS\system32\KERNEL32.dll]
GetMenuCheckMarkDimensions [C:\WINDOWS\system32\USER32.dll]
[W] MLK: Memory leak of 488 bytes from 5 blocks allocated in GetMenuCheckMarkDimensions [USER32.dll]
Distribution of leaked blocks
352 bytes from 1 block of 352 bytes (0x001531b0)
100 bytes from 1 block of 100 bytes (0x001576f8)
28 bytes from 1 block of 28 bytes (0x00157be0)
8 bytes from 2 blocks of 4 bytes (first block: 0x00153330)
Allocation location
LocalAlloc [C:\WINDOWS\system32\KERNEL32.dll]
GetMenuCheckMarkDimensions [C:\WINDOWS\system32\USER32.dll]
MPK: Potential memory leak of 264 bytes from 1 block allocated in RegEnumKeyA [ADVAPI32.dll]
Offset 0x00000008 referenced by 0x0019dc00, a location in a HeapAlloc'd block
Distribution of potentially leaked blocks
264 bytes from 1 block of 264 bytes (0x0019c4c8)
Allocation location
HeapAlloc [C:\WINDOWS\system32\KERNEL32.dll]
RegEnumKeyA [C:\WINDOWS\system32\ADVAPI32.dll]
[W] MLK: Memory leak of 52 bytes from 1 block allocated in GetMenuCheckMarkDimensions [USER32.dll]
Distribution of leaked blocks
52 bytes from 1 block of 52 bytes (0x001588f0)
Allocation location
HeapAlloc [C:\WINDOWS\system32\KERNEL32.dll]
GetMenuCheckMarkDimensions [C:\WINDOWS\system32\USER32.dll]
Exiting with code 0 (0x00000000)
Process time: 10906 milliseconds
Program terminated at 10/02/2006 15:57:10