Exforsys

Online Training

Best Alternative

This is a discussion on Best Alternative within the C and C++ forums, part of the Programming Talk category; Can someone suggest the best possible way to release of all resources once a program is completed or also after ...


Go Back   Exforsys > Programming Talk > C and C++

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-10-2007, 04:55 AM
Member
 
Join Date: Apr 2006
Posts: 98
Angela is on a distinguished road
Best Alternative

Can someone suggest the best possible way to release of all resources once a program is completed or also after forcing a program for termination? I want to know the best alternative for achieving this and also kindly state the reason why it is best
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 07-10-2007, 07:44 AM
Junior Member
 
Join Date: May 2007
Posts: 12
Mukhtar Ahmad is on a distinguished road
the best possible way to release of all resources depends upon the programmer how he/she writes the code.
the best possible way is to make a funcion for the same purpose and make a call to free() function for any resources allocated by every pointer used in the program and as for as the other variables are concerned; all of them are destroyed by the OS itself once the program is finished.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
Best Alternative cyrus C and C++ 1 05-11-2007 04:38 PM
Solaris x86 FAQ 2/2 Dan Anderson Tech FAQ 0 04-27-2004 08:24 PM


All times are GMT -4. The time now is 05:54 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2004 - 2007 Exforsys Inc. All rights reserved.