因为易崩而弃用lz4

1、发现使用lz4压缩库时监控端程序进行远程桌面操作时容易崩溃,原因不明。

2、修复内存泄漏缺陷,在throw "Bad Buffer"的情况需要释放申请的内存。
This commit is contained in:
yuanyuanxiang
2019-01-19 23:26:05 +08:00
parent b573baed0b
commit e4793a489e
6 changed files with 18 additions and 2 deletions

View File

@@ -43,7 +43,13 @@ DWORD WINAPI CScreenManager::WorkThreadProc(LPVOID lParam)
clock_t last = clock();
This->SendFirstScreen();
#if USING_ZLIB
const int fps = 8;// ֡<><D6A1>
#elif USING_LZ4
const int fps = 12;// ֡<><D6A1>
#else
const int fps = 8;// ֡<><D6A1>
#endif
const int sleep = 1000 / fps;// <20><><EFBFBD><EFBFBD>ʱ<EFBFBD>䣨ms<6D><73>
timeBeginPeriod(1);
while (This->m_bIsWorking)