/// <summary>Closes stream, file and AVI library</summary> public void Close() { if (aviStream != IntPtr.Zero) { Avi.AVIStreamRelease(aviStream); aviStream = IntPtr.Zero; } if (aviFile != 0) { Avi.AVIFileRelease(aviFile); aviFile = 0; } Avi.AVIFileExit(); }
/// <summary>Closes all streams, files and libraries</summary> public void Close() { if (getFrameObject != 0) { Avi.AVIStreamGetFrameClose(getFrameObject); getFrameObject = 0; } if (aviStream != IntPtr.Zero) { Avi.AVIStreamRelease(aviStream); aviStream = IntPtr.Zero; } if (aviFile != 0) { Avi.AVIFileRelease(aviFile); aviFile = 0; } Avi.AVIFileExit(); }