June 04, 2008 Delete COM object | ||||
---|---|---|---|---|
| ||||
Hello everyone, Whenever i try to explicity delete a COM object (clases and interfaces inherited from IUnknown) i get compiler errors. How can i delete a COM object to free memory? I create objects inside a loop, and so memory usage keeps growing as i can't delete objects or set them to null. |
June 04, 2008 Re: Delete COM object | ||||
---|---|---|---|---|
| ||||
Posted in reply to Heinz | Heinz Wrote:
> Hello everyone,
>
> Whenever i try to explicity delete a COM object (clases and interfaces inherited from IUnknown) i get compiler errors. How can i delete a COM object to free memory?
>
> I create objects inside a loop, and so memory usage keeps growing as i can't delete objects or set them to null.
You don't delete COM objects - you call their Release() method.
|
Copyright © 1999-2021 by the D Language Foundation