Click here to Skip to main content
12,948,130 members (84,674 online)
Click here to Skip to main content
Articles » Languages » C# » COM Interop » Alternatives
Alternatives (1)
Add your own
alternative version

Tagged as

Stats

40.2K views
25 bookmarked
Posted 27 Feb 2011

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
Team Leader
China China
Chinese Poetry Advocator.
Programmer.

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