Exemple #1
0
  internal void FreeEverything()
    {
    if( IsDisposed )
      return;

    if( RSACryptoBack != null )
      {
      if( RSACryptoBack.IsBusy )
        {
        if( !RSACryptoBack.CancellationPending )
          RSACryptoBack.CancelAsync();

        }

      RSACryptoBack.Dispose();
      RSACryptoBack = null;
      }

    /*
    if( QuadResCombinBackgArray != null )
      {
      try
      {
      for( int Count = 0; Count < QuadResCombinBackgArray.Length; Count++ )
        {
        if( QuadResCombinBackgArray[Count] == null )
          continue;

        if( QuadResCombinBackgArray[Count].IsBusy )
          {
          if( !QuadResCombinBackgArray[Count].CancellationPending )
            QuadResCombinBackgArray[Count].CancelAsync();

        }

      QuadResCombinBackgArray[Count].Dispose();
      QuadResCombinBackgArray[Count] = null;
      }
      }
      catch( Exception Except )
        {
        ShowStatus( "Exception for QuadResCombinBackgArray[] on closing:\r\n" + Except.Message );
        }
      }
      */

    }