03-22-2013, 03:02 PM
Don't need to free COM objects explicitly. QM calls Release() when the variable dies. Normally then the COM object deletes self. The C# object will be freed by the garbage collector later.
QM also frees memory of str, BSTR, VARIANT etc when the variable dies.
QM also frees memory of str, BSTR, VARIANT etc when the variable dies.