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

java - How to pass parameters between Request-Scoped Controllers? -

string - what is the difference between "some" == "some\0" and strcmp("some","some\0") in c++? -

actionscript 3 - Flex: moving a point with rotation doesnt change the point XY? -