.net - Is calling Marshal.ReleaseComObject necessary if the process is terminating? -


i have console application automates windows application through com interop. automates application open file, take screen shot , exits.

i wondering if there ill effects if didn't call marshall.releasecomobject on limited number of com objects getting instantiated? seems cleaner call release method clean objects necessary in case?

is necessary? not. if don't, can guarantee @ point come , bite you. whenever i'm using unwrapped com object, wrap in try...finally block , perform releasecomobject in finally.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -