This isn't really a VS De *** issue, but let me answer nevertheless. :)
The way I see it, you are consuming a dll provided by the company in your
C# Exe. I do not think there is any way for you to clean up the memory used
by the dll as long as the dll is used, because you do not have access to
the dll's internals, and we don't know how the dll code is using the
memory. It could be a global variable in the dll that the dll just keeps
The only thing I would suggest is unloading the dll & reloading it in your
exe, which should unallocate the memory used by the dll.
Alternately, you could call up the company's customer support and tell them
of the problem you are having with their dll.
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at