Re: How to override destructor?
- From: "Igor Tandetnik" <itandetnik@xxxxxxxx>
- Date: Tue, 21 Aug 2007 14:15:47 -0400
Jeff Dunlap <JeffDunlap@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
I don't understand what I am doing wrong, I created a class derived
from this class:
// unmodified microsoft class
class CRequestHandlerT :
From within my subclass, I am attempting to override the destructor
above:
class CLeadsBrowser
: public CRequestHandlerT<CLeadsBrowser>
{
...
public:
...
~CLeadsBrowser()
{
// I wish to add some cleanup code here
CRequestHandlerT::~CRequestHandlerT();
}
...
};
You never stated what your problem is. Anyway, don't explicitly call
base class destructor from yours. Base class destructor will be called
automatically at the end of your destructor. Just put whatever cleanup
you need into ~CLeadsBrowser
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
.
- Prev by Date: Re: How to override destructor?
- Next by Date: Re: Is it safe to send one thread's stack buffer pointer to another th
- Previous by thread: Re: How to override destructor?
- Next by thread: Re: How to override destructor?
- Index(es):
Relevant Pages
|