Click here to Skip to main content
12,620,934 members (37,893 online)
Click here to Skip to main content

Stats

83.8K views
1.1K downloads
30 bookmarked
Posted

Automatic Garbage Collection in C++ using Smart pointers

, 18 May 2003
This article explains how to prevent your programs from memory leaks, by incorporating Garbage Collector in your class.
gcdemo.exe
DIALOG1.DSW
dialog1.dsp
//{{NO_DEPENDENCIES}}
// Microsoft Developer Studio generated include file.
// Used by VDV.RC
//
#define IDR_MENU1                       101
#define IDD_DIALOG1                     102
#define ID_ABOUT                        40001


// Next default values for new objects
// 
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE        103
#define _APS_NEXT_COMMAND_VALUE         40002
#define _APS_NEXT_CONTROL_VALUE         1001
#define _APS_NEXT_SYMED_VALUE           101
#endif
#endif

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

Share

About the Author

abc876
Web Developer
Pakistan Pakistan
No Biography provided

You may also be interested in...

Pro
Pro
| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.161128.1 | Last Updated 19 May 2003
Article Copyright 2003 by abc876
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid