   resource allocation is initialization (RAII)
  i currently am throwing an exception in my constructor of my class and i read that when u do such a thing, the objects destructor is never called! meaning if i allocate any memory without using the heap, i have to MANUALLY deallocate the memory myself.  An article i read stated using "resource allocation is initialization" can be used to solve this problem and is a must.  I'm curious if anyone could give an example or any more useful information on this topic! it's hard for me to understand and i'm not sure if i'm understanding it fully! -thx   
  Here's what the C++ Faq Lite has to say about it.   