/// <summary> /// Dispose the object. /// </summary> /// /// <param name="disposing">Indicates if disposing was initiated manually.</param> protected virtual void Dispose(bool disposing) { if (disposing) { // dispose managed resources } // close current AVI file if any opened and uninitialize AVI library Close(); NativeMethods.AVIFileExit(); }