Implemented object caching on client side
[public/netxms.git] / src / console / win32 / nxcon.cpp
index 7eb2f41..8aeed24 100644 (file)
@@ -327,6 +327,12 @@ BOOL CConsoleApp::InitInstance()
 
 int CConsoleApp::ExitInstance() 
 {
+   TCHAR szBuffer[MAX_PATH];
+
+   _tcscpy(szBuffer, g_szWorkDir);
+   _tcscat(szBuffer, WORKFILE_OBJECTCACHE);
+   NXCSaveObjectCache(g_hSession, szBuffer);
+
    NXCSetDebugCallback(NULL);
    NXCDisconnect(g_hSession);
    NXCShutdown();