| Return Type | Function name | Arguments |
|---|---|---|
| void | hdsApp::Shutdown | (void) |
Declared in file: hzDissemino.h
Defined in file : hdsSystem.cpp
Function Logic:
Function body:
void hdsApp::Shutdown (void)
{
_hzfunc("hdsApp::Shutdown") ;
hdsArticle* pArt ; // All articles
hdsFormdef* pForm ; // All known forms
hdsFormhdl* pFormhdl ; // All known form handlers
hdsFormref* pFormref ; // All known form handlers
hdsBlock* pBlock ; // All known forms
hdsNavtree* pAG ; // All article groups
hdsResource* pPage ; // All known pages by path
hdsInfo* pInfo ;
uint32_t n ;
uint32_t x ;
for (n = 0; n < m_FormDefs.Count() ; n++)
{ pForm = m_FormDefs.GetObj(n) ; delete pForm ; }
m_FormDefs.Clear() ;
for (n = 0; n < m_FormHdls.Count() ; n++)
{ pFormhdl = m_FormHdls.GetObj(n) ; delete pFormhdl ; }
m_FormHdls.Clear() ;
for (n = 0; n < m_FormUrl2Ref.Count() ; n++)
{ pFormref = m_FormUrl2Ref.GetObj(n) ; delete pFormref ; }
m_FormUrl2Ref.Clear() ;
for (n = 0; n < m_Includes.Count() ; n++)
{ pBlock = m_Includes.GetObj(n) ; delete pBlock ; }
printf("Cleared %d Includes\n", m_Includes.Count()) ;
fflush(stdout) ;
m_Includes.Clear() ;
for (n = 0; n < m_ArticleGroups.Count() ; n++)
{
pAG = m_ArticleGroups.GetObj(n) ;
if (!pAG)
continue ;
for (x = 0; x < pAG->Count() ; x++)
{
pArt = (hdsArticle*) pAG->GetItem(x) ;
delete pArt ;
}
printf("Cleared %d Articles\n", pAG->Count()) ;
fflush(stdout) ;
pAG->Clear() ;
}
for (n = 0; n < m_ResourcesPath.Count() ; n++)
{ pPage = m_ResourcesPath.GetObj(n) ; delete pPage ; }
printf("Cleared %d Pages\n", m_ResourcesPath.Count()) ;
fflush(stdout) ;
m_ResourcesPath.Clear() ;
m_ResourcesName.Clear() ;
for (n = 0; n < m_Responses.Count() ; n++)
{ pPage = m_Responses.GetObj(n) ; delete pPage ; }
printf("Cleared %d Formhdl response pages\n", m_Responses.Count()) ;
fflush(stdout) ;
m_Responses.Clear() ;
for (n = 0; n < m_SessCookie.Count() ; n++)
{ pInfo = m_SessCookie.GetObj(n) ; delete pInfo ; }
printf("Cleared %d Sessions\n", m_SessCookie.Count()) ;
fflush(stdout) ;
m_SessCookie.Clear() ;
printf("Cleared %d Styles\n", m_Styles.Count()) ;
fflush(stdout) ;
m_Styles.Clear() ;
printf("Cleared %d Passives\n", m_Passives.Count()) ;
fflush(stdout) ;
m_Passives.Clear() ;
printf("Cleared All\n") ;
fflush(stdout) ;
}