Click here to Skip to main content
11,704,315 members (62,239 online)
Click here to Skip to main content
Articles » Languages » C# » COM Interop » Alternatives
Alternatives (1)

Tagged as

Proper Way of Releasing COM Objects in .NET

, 3 Dec 2012 CPOL 32.7K 25
Fully release resources engaged by COM objects.

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

2 Aug 2011
Crooked path
Please let me suggest that "FinalReleaseComObject" is not the way to go. If you write structured code, you should never need it. Strictly following Microsoft Patterns & Practices:1) Declare & instantiate COM objects at the last moment possible.2) ReleaseComObject(obj) for ALL...

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

wmjordan
China China
Chinese Poetry Lover.
Programmer.

You may also be interested in...

| | Privacy | Terms of Use | Mobile
Web01 | 2.8.150819.1 | Last Updated 3 Dec 2012
Article Copyright 2011 by wmjordan
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid