Click here to Skip to main content
11,581,982 members (78,228 online)
Click here to Skip to main content

A Guard class for any object/resource type

, 15 Apr 2007 CPOL 22.5K 91 18
An elegant way to wrap all types that need a cleanup, to minimize the chances of memory/resource leaks.


Members may post updates or alternatives to this current article in order to show different approaches or add new features.

No alternatives have been posted.


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


About the Author

Software Developer (Senior)
Israel Israel
My name is Vladislav Gelfer, I was born in Kiev (former Soviet Union), since 1993 I live in Israel.
In programming I'm interested mostly in low-level, OOP design, DSP and multimedia.
Besides of the programming I like physics, math, digital photography.

| | Privacy | Terms of Use | Mobile
Web04 | 2.8.150603.1 | Last Updated 15 Apr 2007
Article Copyright 2007 by valdok
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid