public void Dispose() { lock (eg_mutex) { if (entry_group == null) { return; } entry_group.Reset(); entry_group.Dispose(); entry_group = null; } }