When to use virtual destructors in a c++ application
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/461203/when-to-use-virtual-destructors">When to use virtual destructors?</a>  </p>
</blockquote>



<blockquote>
  <p>Possible Duplicate of
  <a href="http://stackoverflow.com/questions/461203/when-to-use-virtual-destructors">When to use virtual destructors?</a></p>
</blockquote>

<p>I was wondering if someone could help me understand the need of virtual destructors. </p>

<p>I have written an application with a main dialog, and from this main dialog other derived dialogs will be spawned.</p>

<p>Therefore, would all of these derived dialogs require a virtual destructor? or just the main dialog?</p>

<p>Thank you in advance</p>
