Click here to Skip to main content
12,350,030 members (25,697 online)
Click here to Skip to main content
Articles » Languages » C# » COM Interop » Alternatives
Alternatives (1)
Add your own
alternative version

Tagged as

Stats

36.9K views
25 bookmarked
Posted

Proper Way of Releasing COM Objects in .NET

, 3 Dec 2012 CPOL
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 Advocator.
Programmer.

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