Johan,
Have you ever used BoundsChecker on GapiDraw? I'm getting about 6K in nested memory leaks from HeapDestroy, and 4 bytes from DeleteCriticalSection (I think this is actually from the OS) when instrumenting the Minimal sample. This is from BoundsChecker 7 under VC6 on Win2K. It appears the leaks occur when SHLWAPI.DLL is unloaded, but I can't be sure of that.
Have you ever used BoundsChecker on GapiDraw? I'm getting about 6K in nested memory leaks from HeapDestroy, and 4 bytes from DeleteCriticalSection (I think this is actually from the OS) when instrumenting the Minimal sample. This is from BoundsChecker 7 under VC6 on Win2K. It appears the leaks occur when SHLWAPI.DLL is unloaded, but I can't be sure of that.