protected override void Dispose(bool ADisposing) { if (FIndexes != null) { FIndexes.Dispose(); FIndexes = null; } FClusteredIndex = null; FTableVar = null; base.Dispose(ADisposing); }
public void Drop(ServerProcess AProcess) { for (int LIndex = FIndexes.Count - 1; LIndex >= 0; LIndex--) { #if !FINDLEAKS try { #endif ((TableBufferIndex)FIndexes[LIndex]).Drop(AProcess); #if !FINDLEAKS } catch { // This should not prevent the table buffer from dropping // TODO: Log this error } #endif FIndexes.RemoveAt(LIndex); } }