Re: problem with freeing memory in dll
I'm a bit confused by your code.
You've gone through the effort of using dynamic access to the DLL. That is you used "LoadLibrary" and then "GetProcAddress" to find the function pointer to the "CreateObject" function.
But your code doesnt do the same for the "release function".
Is "release" a function pointer in the object?
If so, can you check to see that its getting fired correctly.
If not then could you explain how your code finds "release" but requires "GetProcAddress" to find "CreateObject"
Regards
Last edited by couling; November 12th, 2009 at 06:07 PM.
Signature
Please use: [ code ][/ code ] tags and reasonably correct tabbing. They really help us read your code
End Signature