why would you need to delete non-heap variables?Originally Posted by drrngrvy
Manual memory management is, in general, a receipe for disaster. Good coding practice in C++ is to use the RAII idiom. Specifically have a look at the standard library auto_ptr and (even more useful) the boost shared_ptr classes.
Hope that helps