]> granicus.if.org Git - handbrake/commitdiff
WinGui: Backout Handling of AccessViolations. Makes the hardware handling issue worse.
authorsr55 <sr55.hb@outlook.com>
Sun, 17 Feb 2019 17:10:28 +0000 (17:10 +0000)
committersr55 <sr55.hb@outlook.com>
Sun, 17 Feb 2019 17:11:30 +0000 (17:11 +0000)
win/CS/HandBrake.Interop/Interop/HandBrakeUtils.cs

index 77201bc3842c9834cf5d3f79c0d59c2d843e460c..d5fb281b1b32dfa5f0e37801d2048b0520b03bfa 100644 (file)
@@ -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;