Click here to Skip to main content
12,405,303 members (66,750 online)
Click here to Skip to main content

Tagged as

Stats

21.8K views
7 bookmarked
Posted

Proper Way of Releasing COM Objects in .NET

, 2 Aug 2011 CPOL
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...

Revisions


  

Compare Revision Minor Date Status Editor
1 - publicly available No 2-Aug-11 12:07 Available Crooked path

License

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

Share

About the Author

Crooked path
Architect Intergraph Corporation
United States United States
I've spent the last 30 years building durable code for government, healthcare, and utility companies, from Fortran 4 to C#, on databases from pre-SQL ISAM ones to Oracle 11g, and on platforms from the VMS to Linux (not to exclude all common permutations by Microsoft). In my spare time, I teach classes on whole-system design principles from configuring SANS, programming switches, to advanced principles in C# for creating secure, durable code.

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.160721.1 | Last Updated 2 Aug 2011
Article Copyright 2011 by Crooked path
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid