Memory Leak on Windows Mobile 6.1 (Shim_verifer, Shampore and CRITSEC )

Hi All,

 

I am working on an application which has to be launched in the Market Place for windows mobile. As per the requirement of the Market Place we have to clear the App Profiler Test. I am stuck with some memory leak which is getting displayed in the result but
i am not able to identify the cause. I have attached the Log for the result, can someone help me out.

 

The application is used to run a audio file with a karoke text running with some image changes. i have used the Draw string (graphics) to create some effects for the text.

 

Please find the log:

# LOG_BEGIN 7/7/2010 17:35:00 ‘Program FilesChristianContentChristianContent’ ‘AppVerifier_ChristianContent_1735.log’
# SHIM_BEGIN _verifier_ 0
# LOGENTRY shim_verifier.dll 0 ‘Started
# DESCRIPTION BEGIN
The application started running. This is an informational message; no action is required.
# DESCRIPTION END
# LOGENTRY shim_verifier.dll 1 ‘Stopped
# DESCRIPTION BEGIN
The application stopped running. This is an informational message; no action is required.
# DESCRIPTION END
# LOGENTRY shim_verifier.dll 2 ‘Unfreed library
# DESCRIPTION BEGIN
The application loaded a module without freeing it before process exit.
# DESCRIPTION END
| shim_verifier.dll 0 | 0 shim_verifier.dll 0’ChristianContent.exe – 5:35:00 PM
# LOGENTRY shim_verifier.dll 3 ‘Mismatched Load/FreeLibrary.     1 items at 0x27a9406c
# DESCRIPTION BEGIN
The application did not call FreeLibrary for each LoadLibrary call
# DESCRIPTION END
| shim_verifier.dll 3 | 2 nk.exe 8803754c’   0x27a9406c: shim_verifier.dll!(null) + 406ch
| shim_verifier.dll 3 | 2 nk.exe 8803754c’   0x279ef0c0: mscoree3_5.dll!(null) + af0c0h
| shim_verifier.dll 3 | 2 nk.exe 8803754c’   0x279eed1c: mscoree3_5.dll!(null) + aed1ch
| shim_verifier.dll 3 | 2 nk.exe 8803754c’   0x279eef88: mscoree3_5.dll!(null) + aef88h
| shim_verifier.dll 3 | 2 nk.exe 8803754c’   0x279ef034: mscoree3_5.dll!(null) + af034h
| shim_verifier.dll 3 | 2 nk.exe 8803754c’   0x279f386c: mscoree3_5.dll!(null) + b386ch
| shim_verifier.dll 3 | 2 nk.exe 8803754c’   0x279f1758: mscoree3_5.dll!(null) + b1758h
| shim_verifier.dll 3 | 2 nk.exe 8803754c’   0x2796e19c: mscoree3_5.dll!(null) + 2e19ch
| shim_verifier.dll 3 | 2 nk.exe 8803754c’   0x27a0c260: mscoree3_5.dll!(null) + cc260h
| shim_verifier.dll 3 | 2 nk.exe 8803754c’   0x27a48b38: mscoree.dll!(null) + 8b38h
| shim_verifier.dll 3 | 2 nk.exe 8803754c’   0x27a49a64: mscoree.dll!(null) + 9a64h
| shim_verifier.dll 3 | 2 nk.exe 8803754c’   0x03f6b25c: coredll.dll!(null) + 1d25ch
| shim_verifier.dll 3 | 2 nk.exe 8803754c’   0x97fff7e0   (coredll.dll)
# LOGENTRY shim_verifier.dll 4 ‘Mismatched Load/FreeLibrary.     1 items at 0x27a9406c
# DESCRIPTION BEGIN
The application did not call FreeLibrary for each LoadLibrary call
# DESCRIPTION END
| shim_verifier.dll 4 | 2 nk.exe 8803754c’   0x27a9406c: shim_verifier.dll!(null) + 406ch
| shim_verifier.dll 4 | 2 nk.exe 8803754c’   0x279ef0c0: mscoree3_5.dll!(null) + af0c0h
| shim_verifier.dll 4 | 2 nk.exe 8803754c’   0x279eed1c: mscoree3_5.dll!(null) + aed1ch
| shim_verifier.dll 4 | 2 nk.exe 8803754c’   0x279eef88: mscoree3_5.dll!(null) + aef88h
| shim_verifier.dll 4 | 2 nk.exe 8803754c’   0x279ef034: mscoree3_5.dll!(null) + af034h
| shim_verifier.dll 4 | 2 nk.exe 8803754c’   0x27972524: mscoree3_5.dll!(null) + 32524h
| shim_verifier.dll 4 | 2 nk.exe 8803754c’   0x2796e1e0: mscoree3_5.dll!(null) + 2e1e0h
| shim_verifier.dll 4 | 2 nk.exe 8803754c’   0x27a0c260: mscoree3_5.dll!(null) + cc260h
| shim_verifier.dll 4 | 2 nk.exe 8803754c’   0x27a48b38: mscoree.dll!(null) + 8b38h
| shim_verifier.dll 4 | 2 nk.exe 8803754c’   0x27a49a64: mscoree.dll!(null) + 9a64h
| shim_verifier.dll 4 | 2 nk.exe 8803754c’   0x03f6b25c: coredll.dll!(null) + 1d25ch
| shim_verifier.dll 4 | 2 nk.exe 8803754c’   0x97e77000   (Ole32.dll)
# LOGENTRY shim_verifier.dll 5 ‘Mismatched Load/FreeLibrary.     1 items at 0x27a9406c
# DESCRIPTION BEGIN
The application did not call FreeLibrary for each LoadLibrary call
# DESCRIPTION END
| shim_verifier.dll 5 | 2 nk.exe 8803754c’   0x27a9406c: shim_verifier.dll!(null) + 406ch
| shim_verifier.dll 5 | 2 nk.exe 8803754c’   0x0333f278: commctrl.dll!(null) + 5c278h
| shim_verifier.dll 5 | 2 nk.exe 8803754c’   0x03308cc0: commctrl.dll!(null) + 25cc0h
| shim_verifier.dll 5 | 2 nk.exe 8803754c’   0x033445a4: commctrl.dll!(null) + 615a4h
| shim_verifier.dll 5 | 2 nk.exe 8803754c’   0x03f6a7e8: coredll.dll!(null) + 1c7e8h
| shim_verifier.dll 5 | 2 nk.exe 8803754c’   0x03f6a85c: coredll.dll!(null) + 1c85ch
| shim_verifier.dll 5 | 2 nk.exe 8803754c’   0x03f6a960: coredll.dll!(null) + 1c960h
| shim_verifier.dll 5 | 2 nk.exe 8803754c’   0x03f6605c: coredll.dll!(null) + 1805ch
| shim_verifier.dll 5 | 2 nk.exe 8803754c’   0x03fad264: coredll.dll!(null) + 5f264h
| shim_verifier.dll 5 | 2 nk.exe 8803754c’   0x03f661f0: coredll.dll!(null) + 181f0h
| shim_verifier.dll 5 | 2 nk.exe 8803754c’   0x27a94030: shim_verifier.dll!(null) + 4030h
| shim_verifier.dll 5 | 2 nk.exe 8803754c’   0x279ef0c0: mscoree3_5.dll!(null) + af0c0h
| shim_verifier.dll 5 | 2 nk.exe 8803754c’   0x279eece4: mscoree3_5.dll!(null) + aece4h
| shim_verifier.dll 5 | 2 nk.exe 8803754c’   0x2797369c: mscoree3_5.dll!(null) + 3369ch
| shim_verifier.dll 5 | 2 nk.exe 8803754c’   0x27a0c2a0: mscoree3_5.dll!(null) + cc2a0h
| shim_verifier.dll 5 | 2 nk.exe 8803754c’   0x27a48b38: mscoree.dll!(null) + 8b38h
| shim_verifier.dll 5 | 2 nk.exe 8803754c’   0x27a49a64: mscoree.dll!(null) + 9a64h
| shim_verifier.dll 5 | 2 nk.exe 8803754c’   0x03f6b25c: coredll.dll!(null) + 1d25ch
| shim_verifier.dll 5 | 2 nk.exe 8803754c’   0x97923a38   (aygshell.dll)
# LOGENTRY shim_verifier.dll 6 ‘Mismatched Load/FreeLibrary.     1 items at 0x27a9406c
# DESCRIPTION BEGIN
The application did not call FreeLibrary for each LoadLibrary call
# DESCRIPTION END
| shim_verifier.dll 6 | 2 nk.exe 8803754c’   0x27a9406c: shim_verifier.dll!(null) + 406ch
| shim_verifier.dll 6 | 2 nk.exe 8803754c’   0x279ef0c0: mscoree3_5.dll!(null) + af0c0h
| shim_verifier.dll 6 | 2 nk.exe 8803754c’   0x279eece4: mscoree3_5.dll!(null) + aece4h
| shim_verifier.dll 6 | 2 nk.exe 8803754c’   0x279f94e8: mscoree3_5.dll!(null) + b94e8h
| shim_verifier.dll 6 | 2 nk.exe 8803754c’   0x279f92b4: mscoree3_5.dll!(null) + b92b4h
| shim_verifier.dll 6 | 2 nk.exe 8803754c’   0x27a0c2c4: mscoree3_5.dll!(null) + cc2c4h
| shim_verifier.dll 6 | 2 nk.exe 8803754c’   0x27a48b38: mscoree.dll!(null) + 8b38h
| shim_verifier.dll 6 | 2 nk.exe 8803754c’   0x27a49a64: mscoree.dll!(null) + 9a64h
| shim_verifier.dll 6 | 2 nk.exe 8803754c’   0x03f6b25c: coredll.dll!(null) + 1d25ch
| shim_verifier.dll 6 | 2 nk.exe 8803754c’   0x97923a38   (Windowsaygshell.dll)
# LOGENTRY shim_verifier.dll 7 ‘Mismatched Load/FreeLibrary.     1 items at 0x27a9406c
# DESCRIPTION BEGIN
The application did not call FreeLibrary for each LoadLibrary call
# DESCRIPTION END
| shim_verifier.dll 7 | 2 nk.exe 8803754c’   0x27a9406c: shim_verifier.dll!(null) + 406ch
| shim_verifier.dll 7 | 2 nk.exe 8803754c’   0x030ef214: oleaut32.dll!(null) + 15214h
| shim_verifier.dll 7 | 2 nk.exe 8803754c’   0x030ef7c4: oleaut32.dll!(null) + 157c4h
| shim_verifier.dll 7 | 2 nk.exe 8803754c’   0x030e1024: oleaut32.dll!(null) + 7024h
| shim_verifier.dll 7 | 2 nk.exe 8803754c’   0x030e43cc: oleaut32.dll!(null) + a3cch
| shim_verifier.dll 7 | 2 nk.exe 8803754c’   0x030e45c8: oleaut32.dll!(null) + a5c8h
| shim_verifier.dll 7 | 2 nk.exe 8803754c’   0x02ad1af0: wmpocx.dll!(null) + 14af0h
| shim_verifier.dll 7 | 2 nk.exe 8803754c’   0x02ae65d4: wmpocx.dll!(null) + 295d4h
| shim_verifier.dll 7 | 2 nk.exe 8803754c’   0x02ae66ec: wmpocx.dll!(null) + 296ech
| shim_verifier.dll 7 | 2 nk.exe 8803754c’   0x02ae6734: wmpocx.dll!(null) + 29734h
| shim_verifier.dll 7 | 2 nk.exe 8803754c’   0x02ad8b04: wmpocx.dll!(null) + 1bb04h
| shim_verifier.dll 7 | 2 nk.exe 8803754c’   0x02ad96d8: wmpocx.dll!(null) + 1c6d8h
| shim_verifier.dll 7 | 2 nk.exe 8803754c’   0x02adcb70: wmpocx.dll!(null) + 1fb70h
| shim_verifier.dll 7 | 2 nk.exe 8803754c’   0x02ad7124: wmpocx.dll!(null) + 1a124h
| shim_verifier.dll 7 | 2 nk.exe 8803754c’   0x02ad78d8: wmpocx.dll!(null) + 1a8d8h
| shim_verifier.dll 7 | 2 nk.exe 8803754c’   0x02ac9e08: wmpocx.dll!(null) + ce08h
| shim_verifier.dll 7 | 2 nk.exe 8803754c’   0x02ac5cac: wmpocx.dll!(null) + 8cach
| shim_verifier.dll 7 | 2 nk.exe 8803754c’   0x02ac8284: wmpocx.dll!(null) + b284h
| shim_verifier.dll 7 | 2 nk.exe 8803754c’   0x02ac689c: wmpocx.dll!(null) + 989ch
| shim_verifier.dll 7 | 2 nk.exe 8803754c’   0x03111360: ole32.dll!(null) + 8360h
| shim_verifier.dll 7 | 2 nk.exe 8803754c’   0x0310c248: ole32.dll!(null) + 3248h
| shim_verifier.dll 7 | 2 nk.exe 8803754c’   0x0310c2f4: ole32.dll!(null) + 32f4h
| shim_verifier.dll 7 | 2 nk.exe 8803754c’   0x279a5bf0: mscoree3_5.dll!(null) + 65bf0h
| shim_verifier.dll 7 | 2 nk.exe 8803754c’   0x979e4150   (oleaut32.dll)
# LOGENTRY shim_verifier.dll 8 ‘Mismatched Load/FreeLibrary.     1 items at 0x27a941b4
# DESCRIPTION BEGIN
The application did not call FreeLibrary for each LoadLibrary call
# DESCRIPTION END
| shim_verifier.dll 8 | 2 nk.exe 8803754c’   0x27a941b4: shim_verifier.dll!(null) + 41b4h
| shim_verifier.dll 8 | 2 nk.exe 8803754c’   0x022671a4: compime.dll!(null) + 41a4h
| shim_verifier.dll 8 | 2 nk.exe 8803754c’   0x022818d4: compime.dll!(null) + 1e8d4h
| shim_verifier.dll 8 | 2 nk.exe 8803754c’   0x03f6a7e8: coredll.dll!(null) + 1c7e8h
| shim_verifier.dll 8 | 2 nk.exe 8803754c’   0x03f6a85c: coredll.dll!(null) + 1c85ch
| shim_verifier.dll 8 | 2 nk.exe 8803754c’   0x03f6a960: coredll.dll!(null) + 1c960h
| shim_verifier.dll 8 | 2 nk.exe 8803754c’   0x03f6605c: coredll.dll!(null) + 1805ch
| shim_verifier.dll 8 | 2 nk.exe 8803754c’   0x03fad264: coredll.dll!(null) + 5f264h
| shim_verifier.dll 8 | 2 nk.exe 8803754c’   0x03f661f0: coredll.dll!(null) + 181f0h
| shim_verifier.dll 8 | 2 nk.exe 8803754c’   0x03f58fb0: coredll.dll!(null) + afb0h
| shim_verifier.dll 8 | 2 nk.exe 8803754c’   0x03f59918: coredll.dll!(null) + b918h
| shim_verifier.dll 8 | 2 nk.exe 8803754c’   0x03f5a520: coredll.dll!(null) + c520h
| shim_verifier.dll 8 | 2 nk.exe 8803754c’   0x03f5a67c: coredll.dll!(null) + c67ch
| shim_verifier.dll 8 | 2 nk.exe 8803754c’   0x03f5a72c: coredll.dll!(null) + c72ch
| shim_verifier.dll 8 | 2 nk.exe 8803754c’   0x03f5ab3c: coredll.dll!(null) + cb3ch
| shim_verifier.dll 8 | 2 nk.exe 8803754c’   0x03f65238: coredll.dll!(null) + 17238h
| shim_verifier.dll 8 | 2 nk.exe 8803754c’   0x0a042e00: gwes.exe!(null) + 42e00h
| shim_verifier.dll 8 | 2 nk.exe 8803754c’   0x0a01a1e8: gwes.exe!(null) + 1a1e8h
| shim_verifier.dll 8 | 2 nk.exe 8803754c’   0x0a01e764: gwes.exe!(null) + 1e764h
| shim_verifier.dll 8 | 2 nk.exe 8803754c’   0x0a04b740: gwes.exe!(null) + 4b740h
| shim_verifier.dll 8 | 2 nk.exe 8803754c’   0x0a04b7a4: gwes.exe!(null) + 4b7a4h
| shim_verifier.dll 8 | 2 nk.exe 8803754c’   0x03f644f4: coredll.dll!(null) + 164f4h
| shim_verifier.dll 8 | 2 nk.exe 8803754c’   0x2790f38c: netcfagl3_5.dll!(null) + f38ch
| shim_verifier.dll 8 | 2 nk.exe 8803754c’   0x03f65238: coredll.dll!(null) + 17238h
| shim_verifier.dll 8 | 2 nk.exe 8803754c’   0x0a021f20: gwes.exe!(null) + 21f20h
| shim_verifier.dll 8 | 2 nk.exe 8803754c’   0x0a0230bc: gwes.exe!(null) + 230bch
| shim_verifier.dll 8 | 2 nk.exe 8803754c’   0x0a01e7ac: gwes.exe!(null) + 1e7ach
| shim_verifier.dll 8 | 2 nk.exe 8803754c’   0x0a04bb20: gwes.exe!(null) + 4bb20h
| shim_verifier.dll 8 | 2 nk.exe 8803754c’   0x0a01a1bc: gwes.exe!(null) + 1a1bch
| shim_verifier.dll 8 | 2 nk.exe 8803754c’   0x0a01e764: gwes.exe!(null) + 1e764h
| shim_verifier.dll 8 | 2 nk.exe 8803754c’   0x0a04b34c: gwes.exe!(null) + 4b34ch
| shim_verifier.dll 8 | 2 nk.exe 8803754c’   0x0a03eacc: gwes.exe!(null) + 3eacch
| shim_verifier.dll 8 | 2 nk.exe 8803754c’   0x0a03fa6c: gwes.exe!(null) + 3fa6ch
| shim_verifier.dll 8 | 2 nk.exe 8803754c’   0x03f60c7c: coredll.dll!(null) + 12c7ch
| shim_verifier.dll 8 | 2 nk.exe 8803754c’   0x2790641c: netcfagl3_5.dll!(null) + 641ch
| shim_verifier.dll 8 | 2 nk.exe 8803754c’   0x27909fdc: netcfagl3_5.dll!(null) + 9fdch
| shim_verifier.dll 8 | 2 nk.exe 8803754c’   0x2790f874: netcfagl3_5.dll!(null) + f874h
| shim_verifier.dll 8 | 2 nk.exe 8803754c’   0x9772ec48   (shellres.dll)
| shim_verifier.dll 1 | 0 nk.exe 8803754c’ – 5:37:59 PM
# LOGENTRY shim_hleak.dll 9 ‘Leaked 1 handles that were allocated at this stack

# DESCRIPTION BEGIN
Gives the callstack for a handle that leaked
# DESCRIPTION END
| shim_hleak.dll 9 | 2 nk.exe 8803754c’Leaked handle values:
| shim_hleak.dll 9 | 2 nk.exe 8803754c’MUTEX Handle = 0xb6325f9a ‘ChristianContent’
| shim_hleak.dll 9 | 2 nk.exe 8803754c’CALL STACK
| shim_hleak.dll 9 | 2 nk.exe 8803754c’PC=0x27a35970 shim_hleak.dll!(null) + 5970h
| shim_hleak.dll 9 | 2 nk.exe 8803754c’PC=0x27a35880 shim_hleak.dll!(null) + 5880h
| shim_hleak.dll 9 | 2 nk.exe 8803754c’PC=0x27a35cd0 shim_hleak.dll!(null) + 5cd0h
| shim_hleak.dll 9 | 2 nk.exe 8803754c’PC=0x279a5bf0 mscoree3_5.dll!(null) + 65bf0h
# LOGENTRY shim_hleak.dll 10 ‘Leaked 1 handles that were allocated at this stack

# DESCRIPTION BEGIN
Gives the callstack for a handle that leaked
# DESCRIPTION END
| shim_hleak.dll 10 | 2 nk.exe 8803754c’Leaked handle values:
| shim_hleak.dll 10 | 2 nk.exe 8803754c’CRITSEC Handle = 0x000b3670 ”
| shim_hleak.dll 10 | 2 nk.exe 8803754c’CALL STACK
| shim_hleak.dll 10 | 2 nk.exe 8803754c’PC=0x27a35970 shim_hleak.dll!(null) + 5970h
| shim_hleak.dll 10 | 2 nk.exe 8803754c’PC=0x27a35880 shim_hleak.dll!(null) + 5880h
| shim_hleak.dll 10 | 2 nk.exe 8803754c’PC=0x27a35ee0 shim_hleak.dll!(null) + 5ee0h
| shim_hleak.dll 10 | 2 nk.exe 8803754c’PC=0x02b4cbd8 wmcore.dll!(null) + 2ebd8h
| shim_hleak.dll 10 | 2 nk.exe 8803754c’PC=0x02b54be4 wmcore.dll!(null) + 36be4h
| shim_hleak.dll 10 | 2 nk.exe 8803754c’PC=0x02b55898 wmcore.dll!(null) + 37898h
| shim_hleak.dll 10 | 2 nk.exe 8803754c’PC=0x02b55e14 wmcore.dll!(null) + 37e14h
| shim_hleak.dll 10 | 2 nk.exe 8803754c’PC=0x02b38b10 wmcore.dll!(null) + 1ab10h
| shim_hleak.dll 10 | 2 nk.exe 8803754c’PC=0x02b38c28 wmcore.dll!(null) + 1ac28h
| shim_hleak.dll 10 | 2 nk.exe 8803754c’PC=0x02adcb3c wmpocx.dll!(null) + 1fb3ch
| shim_hleak.dll 10 | 2 nk.exe 8803754c’PC=0x02ad7124 wmpocx.dll!(null) + 1a124h
| shim_hleak.dll 10 | 2 nk.exe 8803754c’PC=0x02ad78d8 wmpocx.dll!(null) + 1a8d8h
| shim_hleak.dll 10 | 2 nk.exe 8803754c’PC=0x02ac9e08 wmpocx.dll!(null) + ce08h
| shim_hleak.dll 10 | 2 nk.exe 8803754c’PC=0x02ac5cac wmpocx.dll!(null) + 8cach
| shim_hleak.dll 10 | 2 nk.exe 8803754c’PC=0x02ac8284 wmpocx.dll!(null) + b284h
| shim_hleak.dll 10 | 2 nk.exe 8803754c’PC=0x02ac689c wmpocx.dll!(null) + 989ch
| shim_hleak.dll 10 | 2 nk.exe 8803754c’PC=0x03111360 ole32.dll!(null) + 8360h
| shim_hleak.dll 10 | 2 nk.exe 8803754c’PC=0x0310c248 ole32.dll!(null) + 3248h
| shim_hleak.dll 10 | 2 nk.exe 8803754c’PC=0x0310c2f4 ole32.dll!(null) + 32f4h
| shim_hleak.dll 10 | 2 nk.exe 8803754c’PC=0x279a5bf0 mscoree3_5.dll!(null) + 65bf0h
# LOGENTRY shim_hleak.dll 11 ‘Leaked 1 handles that were allocated at this stack

# DESCRIPTION BEGIN
Gives the callstack for a handle that leaked
# DESCRIPTION END
| shim_hleak.dll 11 | 2 nk.exe 8803754c’Leaked handle values:
| shim_hleak.dll 11 | 2 nk.exe 8803754c’SEMAPHORE Handle = 0xd68610b6 ‘SockLib Semaphore 0x966bd42c’
| shim_hleak.dll 11 | 2 nk.exe 8803754c’CALL STACK
| shim_hleak.dll 11 | 2 nk.exe 8803754c’PC=0x27a35970 shim_hleak.dll!(null) + 5970h
| shim_hleak.dll 11 | 2 nk.exe 8803754c’PC=0x27a35880 shim_hleak.dll!(null) + 5880h
| shim_hleak.dll 11 | 2 nk.exe 8803754c’PC=0x27a35fa8 shim_hleak.dll!(null) + 5fa8h
| shim_hleak.dll 11 | 2 nk.exe 8803754c’PC=0x02b54cc8 wmcore.dll!(null) + 36cc8h
| shim_hleak.dll 11 | 2 nk.exe 8803754c’PC=0x02b55898 wmcore.dll!(null) + 37898h
| shim_hleak.dll 11 | 2 nk.exe 8803754c’PC=0x02b55e14 wmcore.dll!(null) + 37e14h
| shim_hleak.dll 11 | 2 nk.exe 8803754c’PC=0x02b38b10 wmcore.dll!(null) + 1ab10h
| shim_hleak.dll 11 | 2 nk.exe 8803754c’PC=0x02b38c28 wmcore.dll!(null) + 1ac28h
| shim_hleak.dll 11 | 2 nk.exe 8803754c’PC=0x02adcb3c wmpocx.dll!(null) + 1fb3ch
| shim_hleak.dll 11 | 2 nk.exe 8803754c’PC=0x02ad7124 wmpocx.dll!(null) + 1a124h
| shim_hleak.dll 11 | 2 nk.exe 8803754c’PC=0x02ad78d8 wmpocx.dll!(null) + 1a8d8h
| shim_hleak.dll 11 | 2 nk.exe 8803754c’PC=0x02ac9e08 wmpocx.dll!(null) + ce08h
| shim_hleak.dll 11 | 2 nk.exe 8803754c’PC=0x02ac5cac wmpocx.dll!(null) + 8cach
| shim_hleak.dll 11 | 2 nk.exe 8803754c’PC=0x02ac8284 wmpocx.dll!(null) + b284h
| shim_hleak.dll 11 | 2 nk.exe 8803754c’PC=0x02ac689c wmpocx.dll!(null) + 989ch
| shim_hleak.dll 11 | 2 nk.exe 8803754c’PC=0x03111360 ole32.dll!(null) + 8360h
| shim_hleak.dll 11 | 2 nk.exe 8803754c’PC=0x0310c248 ole32.dll!(null) + 3248h
| shim_hleak.dll 11 | 2 nk.exe 8803754c’PC=0x0310c2f4 ole32.dll!(null) + 32f4h
| shim_hleak.dll 11 | 2 nk.exe 8803754c’PC=0x279a5bf0 mscoree3_5.dll!(null) + 65bf0h
# LOGENTRY shim_hleak.dll 12 ‘Leaked 1 handles that were allocated at this stack

# DESCRIPTION BEGIN
Gives the callstack for a handle that leaked
# DESCRIPTION END
| shim_hleak.dll 12 | 2 nk.exe 8803754c’Leaked handle values:
| shim_hleak.dll 12 | 2 nk.exe 8803754c’CRITSEC Handle = 0x001eda58 ”
| shim_hleak.dll 12 | 2 nk.exe 8803754c’CALL STACK
| shim_hleak.dll 12 | 2 nk.exe 8803754c’PC=0x27a35970 shim_hleak.dll!(null) + 5970h
| shim_hleak.dll 12 | 2 nk.exe 8803754c’PC=0x27a35880 shim_hleak.dll!(null) + 5880h
| shim_hleak.dll 12 | 2 nk.exe 8803754c’PC=0x27a35ee0 shim_hleak.dll!(null) + 5ee0h
| shim_hleak.dll 12 | 2 nk.exe 8803754c’PC=0x02b4cbd8 wmcore.dll!(null) + 2ebd8h
| shim_hleak.dll 12 | 2 nk.exe 8803754c’PC=0x02b776b8 wmcore.dll!(null) + 596b8h
| shim_hleak.dll 12 | 2 nk.exe 8803754c’PC=0x02b77b30 wmcore.dll!(null) + 59b30h
| shim_hleak.dll 12 | 2 nk.exe 8803754c’PC=0x02b43754 wmcore.dll!(null) + 25754h
| shim_hleak.dll 12 | 2 nk.exe 8803754c’PC=0x02b43bc8 wmcore.dll!(null) + 25bc8h
| shim_hleak.dll 12 | 2 nk.exe 8803754c’PC=0x02b3e500 wmcore.dll!(null) + 20500h
| shim_hleak.dll 12 | 2 nk.exe 8803754c’PC=0x02b3f5d8 wmcore.dll!(null) + 215d8h
| shim_hleak.dll 12 | 2 nk.exe 8803754c’PC=0x02b5c2c4 wmcore.dll!(null) + 3e2c4h
| shim_hleak.dll 12 | 2 nk.exe 8803754c’PC=0x02b41fe8 wmcore.dll!(null) + 23fe8h
| shim_hleak.dll 12 | 2 nk.exe 8803754c’PC=0x02b4ee50 wmcore.dll!(null) + 30e50h
| shim_hleak.dll 12 | 2 nk.exe 8803754c’PC=0x02b4f5b4 wmcore.dll!(null) + 315b4h
| shim_hleak.dll 12 | 2 nk.exe 8803754c’PC=0x02b4ee50 wmcore.dll!(null) + 30e50h
| shim_hleak.dll 12 | 2 nk.exe 8803754c’PC=0x02b50664 wmcore.dll!(null) + 32664h
| shim_hleak.dll 12 | 2 nk.exe 8803754c’PC=0x02b50838 wmcore.dll!(null) + 32838h
| shim_hleak.dll 12 | 2 nk.exe 8803754c’PC=0x02b4f3b0 wmcore.dll!(null) + 313b0h
| shim_hleak.dll 12 | 2 nk.exe 8803754c’PC=0x02b5a664 wmcore.dll!(null) + 3c664h
| shim_hleak.dll 12 | 2 nk.exe 8803754c’PC=0x02b40d58 wmcore.dll!(null) + 22d58h
| shim_hleak.dll 12 | 2 nk.exe 8803754c’PC=0x02b41410 wmcore.dll!(null) + 23410h
| shim_hleak.dll 12 | 2 nk.exe 8803754c’PC=0x02b74840 wmcore.dll!(null) + 56840h
| shim_hleak.dll 12 | 2 nk.exe 8803754c’PC=0x02b57c60 wmcore.dll!(null) + 39c60h
| shim_hleak.dll 12 | 2 nk.exe 8803754c’PC=0x03f65238 coredll.dll!(null) + 17238h
| shim_hleak.dll 12 | 2 nk.exe 8803754c’PC=0x0a021f20 gwes.exe!(null) + 21f20h
| shim_hleak.dll 12 | 2 nk.exe 8803754c’PC=0x0a0230bc gwes.exe!(null) + 230bch
| shim_hleak.dll 12 | 2 nk.exe 8803754c’PC=0x0a01b868 gwes.exe!(null) + 1b868h
| shim_hleak.dll 12 | 2 nk.exe 8803754c’PC=0x03f640dc coredll.dll!(null) + 160dch
| shim_hleak.dll 12 | 2 nk.exe 8803754c’PC=0x2791b254 netcfagl3_5.dll!(null) + 1b254h
| shim_hleak.dll 12 | 2 nk.exe 8803754c’PC=0x2791b2dc netcfagl3_5.dll!(null) + 1b2dch
| shim_hleak.dll 12 | 2 nk.exe 8803754c’PC=0x2791b3dc netcfagl3_5.dll!(null) + 1b3dch
| shim_hleak.dll 12 | 2 nk.exe 8803754c’PC=0x2791b4bc netcfagl3_5.dll!(null) + 1b4bch
# LOGENTRY shim_hleak.dll 13 ‘Leaked 1 handles that were allocated at this stack

# DESCRIPTION BEGIN
Gives the callstack for a handle that leaked
# DESCRIPTION END
| shim_hleak.dll 13 | 2 nk.exe 8803754c’Leaked handle values:
| shim_hleak.dll 13 | 2 nk.exe 8803754c’CRITSEC Handle = 0x001ee00c ”
| shim_hleak.dll 13 | 2 nk.exe 8803754c’CALL STACK
| shim_hleak.dll 13 | 2 nk.exe 8803754c’PC=0x27a35970 shim_hleak.dll!(null) + 5970h
| shim_hleak.dll 13 | 2 nk.exe 8803754c’PC=0x27a35880 shim_hleak.dll!(null) + 5880h
| shim_hleak.dll 13 | 2 nk.exe 8803754c’PC=0x27a35ee0 shim_hleak.dll!(null) + 5ee0h
| shim_hleak.dll 13 | 2 nk.exe 8803754c’PC=0x02b4cbd8 wmcore.dll!(null) + 2ebd8h
| shim_hleak.dll 13 | 2 nk.exe 8803754c’PC=0x02b776d0 wmcore.dll!(null) + 596d0h
| shim_hleak.dll 13 | 2 nk.exe 8803754c’PC=0x02b77b30 wmcore.dll!(null) + 59b30h
| shim_hleak.dll 13 | 2 nk.exe 8803754c’PC=0x02b43754 wmcore.dll!(null) + 25754h
| shim_hleak.dll 13 | 2 nk.exe 8803754c’PC=0x02b43bc8 wmcore.dll!(null) + 25bc8h
| shim_hleak.dll 13 | 2 nk.exe 8803754c’PC=0x02b3e500 wmcore.dll!(null) + 20500h
| shim_hleak.dll 13 | 2 nk.exe 8803754c’PC=0x02b3f5d8 wmcore.dll!(null) + 215d8h
| shim_hleak.dll 13 | 2 nk.exe 8803754c’PC=0x02b5c2c4 wmcore.dll!(null) + 3e2c4h
| shim_hleak.dll 13 | 2 nk.exe 8803754c’PC=0x02b41fe8 wmcore.dll!(null) + 23fe8h
| shim_hleak.dll 13 | 2 nk.exe 8803754c’PC=0x02b4ee50 wmcore.dll!(null) + 30e50h
| shim_hleak.dll 13 | 2 nk.exe 8803754c’PC=0x02b4f5b4 wmcore.dll!(null) + 315b4h
| shim_hleak.dll 13 | 2 nk.exe 8803754c’PC=0x02b4ee50 wmcore.dll!(null) + 30e50h
| shim_hleak.dll 13 | 2 nk.exe 8803754c’PC=0x02b50664 wmcore.dll!(null) + 32664h
| shim_hleak.dll 13 | 2 nk.exe 8803754c’PC=0x02b50838 wmcore.dll!(null) + 32838h
| shim_hleak.dll 13 | 2 nk.exe 8803754c’PC=0x02b4f3b0 wmcore.dll!(null) + 313b0h
| shim_hleak.dll 13 | 2 nk.exe 8803754c’PC=0x02b5a664 wmcore.dll!(null) + 3c664h
| shim_hleak.dll 13 | 2 nk.exe 8803754c’PC=0x02b40d58 wmcore.dll!(null) + 22d58h
| shim_hleak.dll 13 | 2 nk.exe 8803754c’PC=0x02b41410 wmcore.dll!(null) + 23410h
| shim_hleak.dll 13 | 2 nk.exe 8803754c’PC=0x02b74840 wmcore.dll!(null) + 56840h

 

Thanks in Advance

Regards

Biju

From the log, it looks like you are using LoadLibrary(), but aren’t calling FreeLibrary() when you are done using it.  That would definitely be a memory  leak./

Hi Dustin,Can you give me some more input on this load library() as i am little clueless out hereI am using the Media Player alone in this application  and CreateGraphics() which are properly disposed when i am using APplication.exit();RegardsBiju

Hi Dustin,I am using the following Libraries  [DllImport(“coredll.dll”,