Esempio n. 1
0
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                // Dispose managed objects.
            }

            // Dispose unmanaged objects.
            if (this.fdiHandle != Pointer.Zero)
            {
                FDI.Destroy(this.fdiHandle);
                this.erf.Dispose();
                this.erf        = null;
                this.cabStream  = null;
                this.fileStream = null;
                this.fdiHandle  = Pointer.Zero;
            }
        }
Esempio n. 2
0
 /// <summary>
 /// Releases the handle by calling FDIDestroy().
 /// </summary>
 /// <returns>True if the release succeeded.</returns>
 protected override bool ReleaseHandle()
 {
     return(FDI.Destroy(this.handle));
 }