Home > Software engineering >  SAFEARRAY memory leak problem
SAFEARRAY memory leak problem

Time:09-30

I am using a third-party COM control, he can pass a function returns a two-dimensional SAFEARRAY array, I use after the completion of the call SAFEArrayDestroy function, but as if the memory is not released, memory have been growing, what problem, what a great god, please give directions,

CodePudding user response:

Always use a separate process calls have a memory leak COM controls,

CodePudding user response:

Run many times or for a long time after the comparison, a single short is not representative for leaks

CodePudding user response:

Check for leaks elsewhere

CodePudding user response:

refer to the second floor zgl7903 response:
running countless times or for a long time after contrast, a single short is not representative for leaks
does have, memory has been up, until the overflowing

CodePudding user response:

You need to know whether the com interface internal memory allocated has offer you call interface to release, if it has no interface, internal memory allocated, it can not be released
Requires a third-party library
  • Related