From 733f0ce4feef6b7dc4151ffe0f896efb53640314 Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Thu, 15 Aug 2019 10:44:19 +0300 Subject: Machine Studio 4.0.23.0 PPC 1.0.40.0 --- .../PPC/Modules/Tango.PPC.Jobs/ViewModels/JobViewVM.cs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/ViewModels/JobViewVM.cs') diff --git a/Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/ViewModels/JobViewVM.cs b/Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/ViewModels/JobViewVM.cs index 2ae9df7fb..c78af155c 100644 --- a/Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/ViewModels/JobViewVM.cs +++ b/Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/ViewModels/JobViewVM.cs @@ -1194,6 +1194,7 @@ namespace Tango.PPC.Jobs.ViewModels /// /// Iterates over all brush stops and checks for out of gamut. /// + [HandleProcessCorruptedStateExceptions] private void CheckGamutThreadMethod() { while (true) @@ -1211,6 +1212,11 @@ namespace Tango.PPC.Jobs.ViewModels stop.IsOutOfGamut = _converter.IsOutOfGamut(stop); stop.OutOfGamutChecked = true; } + catch (AccessViolationException) + { + LogManager.Log($"Out of gamut check failed for brush stop {stop.StopIndex} at segment {stop.Segment.SegmentIndex}.", LogCategory.Warning); + continue; + } catch { LogManager.Log($"Out of gamut check failed for brush stop {stop.StopIndex} at segment {stop.Segment.SegmentIndex}.", LogCategory.Warning); -- cgit v1.3.1