14,739,485 members
Sign in
Email
Password
Forgot your password?
Sign in with
Search within:
Articles
Quick Answers
Messages
home
articles
Chapters and Sections
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View VB.NET questions
View C++ questions
View SQL questions
View Javascript questions
discussions
forums
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
ASP.NET
JavaScript
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
.NET (Core and Framework)
Android
iOS
Mobile
Silverlight / WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
stuff
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
Product Showcase
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Articles by Crooked Path (Article: 1, Tip/Trick: 1)
Article: 1, Tip/Trick: 1
Articles
Technical Blogs
Tips and Tricks
Reference Articles
Projects
Average article rating: 4.76
C#
Memory Management
Memory Mapped File Interoperability with .NET Objects
Posted: 2 Oct 2012 Updated:
23 Oct 2012
Views: 43,881 Rating: 4.76/5 Votes: 11 Popularity: 4.96
Licence: The Code Project Open License (CPOL)
Bookmarked: 29
Downloaded: 1,258
Please
Sign up or sign in
to vote.
This article provides the basic framework for reading/writing .NET objects, targeting the Windows Memory Mapped File API.
No blogs have been submitted.
Average tips rating: 4.93
Programming Tips
General
Proper Way of Releasing COM Objects in .NET [Tip/Trick]
Posted: 2 Aug 2011 Updated:
2 Aug 2011
Views: 41,231 Rating: 4.93/5 Votes: 7 Popularity: 4.17
Licence: The Code Project Open License (CPOL)
Bookmarked: 8
Downloaded: 0
Please
Sign up or sign in
to vote.
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...
No reference articles have been posted.
No projects have been posted.
Crooked Path
Architect
Anodyne Enterprise Security
United States
I've spent the last 30+ years building secure, durable code in government, healthcare, and critical infrastructure industries, from FORTRAN 4 to C#, on databases from pre-SQL ISAM ones to Oracle 12, and on platforms from 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. I am CISSP and CCSP certified, regularly working with legal teams to validate Cloud security and regulatory compliance.