Exemple #1
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         ReadBuffer.Dispose();
         WriteBuffer.Dispose();
     }
 }
Exemple #2
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         ErrorPanel?.Dispose();
         ErrorMessage?.Dispose();
         MainPanel?.Dispose();
         ServerName?.Dispose();
         MemoryAllocation?.Dispose();
         RadAjaxManager?.Dispose();
         CacheGrid?.Dispose();
     }
 }
Exemple #3
0
 /// <summary>
 /// Disposes this hook WITHOUT any check.<br/>
 /// Disposing a hook means to detach and then free memory regions the hook uses.<br/>
 /// It's extremely dangerous to call this method.
 /// Instead, you should call <see cref="WaitToDispose(int)"/>.
 /// </summary>
 public void Dispose()
 {
     lock (this)
     {
         if (_IsDisposed)
         {
             return;
         }
         GC.SuppressFinalize(this);
         Detach();
         MemoryAllocation.Dispose();
         _IsDisposed = true;
     }
 }
Exemple #4
0
        protected override void Free()
        {
            if (Main.IsShutdown)
            {
                return;
            }

            Transform = null;

            if (Allocation != null)
            {
                Allocation.Dispose();
                Allocation = null;
            }
        }