home *** CD-ROM | disk | FTP | other *** search
- #include "StdAfx.H"
- #include "TestCon.H"
-
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
-
- CExcepInfo::CExcepInfo()
- {
- memset( this, 0, sizeof( *this ) );
- }
-
- CExcepInfo::~CExcepInfo()
- {
- Clear();
- }
-
- void CExcepInfo::Clear()
- {
- if( bstrSource != NULL )
- {
- ::SysFreeString( bstrSource );
- }
- if( bstrDescription != NULL )
- {
- ::SysFreeString( bstrDescription );
- }
- if( bstrHelpFile != NULL )
- {
- ::SysFreeString( bstrHelpFile );
- }
-
- memset( this, 0, sizeof( *this ) );
- }
-