Click here to Skip to main content
Click here to Skip to main content
Articles » Languages » C# » COM Interop » Alternatives
 
Alternatives (1)

Proper Way of Releasing COM Objects in .NET

By , 3 Dec 2012

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)

About the Author

wmjordan

China China
Chinese Poetry Lover.
Programmer.

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