The application hangs when running on windows 10 with other language than English (I suppose but at least using french).
Can be specific of english version with MUI.
Here is the .NET Runtime error reported in log :
Application: Text-Grab.exe
CoreCLR Version: 4.700.20.47201
.NET Core Version: 3.1.9
Description: The process was terminated due to an unhandled exception.
Exception Info: System.MissingMethodException: Method not found: 'System.String Windows.Globalization.Language.get_AbbreviatedName()'.
at Text_Grab.MainWindow.<>c__DisplayClass14_0.b__1(Language la)
at System.Linq.Enumerable.WhereListIterator1.ToList() at System.Linq.Enumerable.ToList[TSource](IEnumerable
1 source)
at Text_Grab.MainWindow.ExtractText(Bitmap bmp, String languageCode, Nullable`1 singlePoint)
at Text_Grab.MainWindow.GetRegionsText(Rectangle selectedRegion)
at Text_Grab.MainWindow.RegionClickCanvas_MouseUp(Object sender, MouseButtonEventArgs e)
at System.Threading.Tasks.Task.<>c.b__139_0(Object state)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
at System.Windows.Threading.Dispatcher.Run()
at System.Windows.Application.RunDispatcher(Object ignore)
at System.Windows.Application.RunInternal(Window window)
at System.Windows.Application.Run()
at Text_Grab.App.Main()
Here is the Application Error :
Nom de l’application défaillante Text-Grab.exe, version : 0.0.0.0, horodatage : 0x5f6b3846
Nom du module défaillant : KERNELBASE.dll, version : 10.0.17763.1790, horodatage : 0x16e07148
Code d’exception : 0xe0434352
Décalage d’erreur : 0x001226c2
ID du processus défaillant : 0x41f8
Heure de début de l’application défaillante : 0x01d73214e3607b4a
Chemin d’accès de l’application défaillante : C:\Program Files\WindowsApps\40087JoeFinApps.TextGrab_1.5.0.0_x86__kdbpvth5scec4\Text-Grab\Text-Grab.exe
Chemin d’accès du module défaillant: C:\WINDOWS\System32\KERNELBASE.dll
ID de rapport : 489e2446-6ba1-44da-8f6b-fa05418c7c7e
Nom complet du package défaillant : 40087JoeFinApps.TextGrab_1.5.0.0_x86__kdbpvth5scec4
ID de l’application relative au package défaillant : App
Switching windows 10 to English make it works.
Available for translation of the error above if needed.