public void ShutdownApplication()
{
if (m_hasShutDown)
return;
//Check back in extensions
if (m_AoInit != null)
{
foreach (KeyValuePair<esriLicenseExtensionCode, esriLicenseStatus> item in m_extensionStatus)
{
if (item.Value == esriLicenseStatus.esriLicenseCheckedOut)
m_AoInit.CheckInExtension(item.Key);
}
m_AoInit.Shutdown();
}
m_requestedProducts = null;
m_requestedExtensions = null;
m_extensionStatus = null;
m_productStatus = null;
m_hasShutDown = true;
}