c++ - How to solve BSTR leak memory com object? -



c++ - How to solve BSTR leak memory com object? -

at first excuse bad english language .

i using microsoft isa server 2006 c++ programming sdk .

i info isa server isa functions needs bstr variable , create memory leak , using ::sysfreestring(bstr) doesn't solve memory leak . should have ?

fpclib::ifpclogentryptr::get_clientip(bstr *);

by default, com bstr values cached runtime library, can give appearance of leak on time. though own code has no leaks, heap size still grows - annoying.

if want rule out cause, can disable using setoanocache api.

if still have apparent leak after doing that, can track downwards using process dumper consecutive snapshots , run 1 time again compare them. run against debug build if possible, callstacks easier decipher in case.

c++ visual-c++

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -