class object disposal

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Philip Gray (philiphgray_at_hotmail.com)
Date: 02/15/04


Date: Sun, 15 Feb 2004 14:34:13 -0000

Hello all,

Simple one - If I have a class that invokes a series of other objects, each
calling their own objects and so on, do I have to explicity dispose of all
of the objects or can I just kill the top level class and all of the
resources will be released?

I'm aware of the resource implications of keeping a lot of objects open,
particularly on the pocketpc, but if I can do this, it'll save me quite a
bit of faffing about.

Thoughts?



Relevant Pages

  • Re: return from main
    ... start-up code performs whatever processing is needed prior to calling ... calling exit() from main invokes the functions ... and potentially also to the strings pointed to by the argv array. ...
    (comp.lang.c)
  • Re: Q: Checking the size of a non-allocated array?
    ... this call invokes size, which may not be ... You might want to check if x is allocated before calling the routine: ... allocatable array. ...
    (comp.lang.fortran)