Freeing memory problem

F

filippo

Hi,
I call a c++ function dll in VBA using the declare
function statement. The returned value is an array and is
stored in a variable of type Variant. Everything works
properly, but the memory is not freed at the end of the
routine.
Looking in the Windows Task Manager on the "Commit Charge"
box, the Total value increase at every call but doesn't
come back. At the end, when the limit is reached Excel
crashes and the Total is back to standard values.

Any suggestion to give?

Thank in advance.

Filippo Pignataro

P.S.
The Objects in my dll are deleted before leaving the dll.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top