BoundsChecker not catching leak due to SafeArrayGetElement()



I had a problem in my code where I was failing to clear a variant after doing a SafeArrayGetElement(). The result of this was my application was eating memory as it looped and failed to clear the variant. It was easy to fix but as a test, I left it in to see if BoundsChecker would detect this problem. It did not appear to detect it. Does BoundsChecker have a problem detecting leaks allocated by SafeArrayGetElement()?


This is a known issue with BoundsChecker v6.03 and previous versions of BoundsChecker. This is currently being investigated to be fixed in a coming version of BoundsChecker.

Old KB# 12266
Comment List
Related Discussions