// ctor public DShowMFVGraph(Log logInfo) { LogInfo = logInfo; AppSettingsReader appConfig = new AppSettingsReader(); videoSource = (string)appConfig.GetValue("VideoSource", typeof(string)); filePath = (string)appConfig.GetValue("FilePath", typeof(string)); videoPreview = (bool)appConfig.GetValue("VideoPreview", typeof(bool)); videoFrame = GlobalMemClass.CreateSharedMem("globalmem"); InitializeInternal(); }
/// <summary> Clean up any resources being used. </summary> public void Dispose() // Dispose() { CloseInterfaces(); GlobalMemClass.Cleanup(); LogInfo(LogGroups.Console, "DShowMFVGraph disposed."); }