/// <summary> /// 关闭 /// </summary> public void Shutdown() { lock (_shutdownlock) { if (_index != null) { log.Debug("Shutting down"); } else { return; } _savetimer.Enabled = false; SaveIndex(); SaveLastRecord(); if (_deleted != null) { _deleted.Shutdown(); } if (_index != null) { _index.Shutdown(); } if (_archive != null) { _archive.Shutdown(); } _index = null; _archive = null; _deleted = null; //log.Debug("Shutting down log"); //LogManager.Shutdown(); } }
public void Shutdown() { lock (_lock) { InternalSave(); if (_deleted != null) { _deleted.SaveIndex(); _deleted.Shutdown(); _deleted = null; } if (_bitmaps != null) { _bitmaps.Commit(Global.FreeBitmapMemoryOnSave); _bitmaps.Shutdown(); _bitmaps = null; } if (_docMode) { _docs.Shutdown(); } } }