From 460443b8810d6b13bc561b0857f6ca4b4b8b06d4 Mon Sep 17 00:00:00 2001 From: sr55 Date: Sun, 17 Feb 2019 17:10:28 +0000 Subject: [PATCH] WinGui: Backout Handling of AccessViolations. Makes the hardware handling issue worse. --- win/CS/HandBrake.Interop/Interop/HandBrakeUtils.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/win/CS/HandBrake.Interop/Interop/HandBrakeUtils.cs b/win/CS/HandBrake.Interop/Interop/HandBrakeUtils.cs index 77201bc38..d5fb281b1 100644 --- a/win/CS/HandBrake.Interop/Interop/HandBrakeUtils.cs +++ b/win/CS/HandBrake.Interop/Interop/HandBrakeUtils.cs @@ -89,20 +89,20 @@ namespace HandBrake.Interop.Interop } } - [HandleProcessCorruptedStateExceptions] + //[HandleProcessCorruptedStateExceptions] static bool TryInit() { try { - if (HBFunctions.hb_global_init() == -1) + if (HBFunctions.hb_global_init_no_hardware() == -1) { throw new InvalidOperationException("HB global init failed."); } } - catch (AccessViolationException e) - { - return false; - } + //catch (AccessViolationException e) + //{ + // return false; + //} catch (Exception e) { return false; -- 2.40.0