471,330 Members | 1,048 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,330 software developers and data experts.

Do I need to do anything special with COM objects in .NET list?

Just checking, can't Google any definitive answer, say I'm doing
something like this:

IList<IUnknown>comObjList = new IList<IUnknown>();
IUnknown comObject = Activator.CreateInstance(...); // COM object eg:
VB dll, c/c++ etc.

When comObjList goes out of scope, the COM object should be garbage
collected. Is this right? I don't have to do some funky add/remove
reference count from the COM object right?

Jun 27 '08 #1
0 671

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

10 posts views Thread by Jeff Wagner | last post: by
8 posts views Thread by JustSomeGuy | last post: by
21 posts views Thread by Johan Tibell | last post: by
1 post views Thread by =?ISO-8859-1?Q?Lasse_V=E5gs=E6ther_Karlsen?= | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.