diff --git a/tools/QuietBackgroundProcesses/DevHome.QuietBackgroundProcesses.UI/ViewModels/QuietBackgroundProcessesViewModel.cs b/tools/QuietBackgroundProcesses/DevHome.QuietBackgroundProcesses.UI/ViewModels/QuietBackgroundProcessesViewModel.cs index 54e342107b..ff127e1c4a 100644 --- a/tools/QuietBackgroundProcesses/DevHome.QuietBackgroundProcesses.UI/ViewModels/QuietBackgroundProcessesViewModel.cs +++ b/tools/QuietBackgroundProcesses/DevHome.QuietBackgroundProcesses.UI/ViewModels/QuietBackgroundProcessesViewModel.cs @@ -86,13 +86,28 @@ await Task.Run(async () => return; } - var isFeaturePresent = QuietBackgroundProcessesSessionManager.IsFeaturePresent(); + var isFeaturePresent = false; + try + { + isFeaturePresent = QuietBackgroundProcessesSessionManager.IsFeaturePresent(); + } + catch (Exception ex) + { + _log.Error(ex, "COM error"); + } var isAvailable = false; isAvailable = _table != null; if (!isAvailable) { - isAvailable = QuietBackgroundProcessesSessionManager.HasLastPerformanceRecording(); + try + { + isAvailable = QuietBackgroundProcessesSessionManager.HasLastPerformanceRecording(); + } + catch (Exception ex) + { + _log.Error(ex, "COM error"); + } } var running = false;