Hi,
It seems that from some reason using GDAL on v14.5.1 causes a crash with Win10 (x64) but works properly with Win11 (x64). I was able to re-produce this problem simply by creating empty gdal converter:
private async void MapView_Loaded(object sender, RoutedEventArgs e) { GdalProjectionConverter converter = new GdalProjectionConverter(); }
When such app is run on Win10 it will crash with following exception:
The process was terminated due to an unhandled exception.
Exception Info: System.AccessViolationException
at OSGeo.OSR.OsrPINVOKE.SetPROJSearchPaths(IntPtr[])
at OSGeo.OSR.Osr.SetPROJSearchPaths(System.String[])
at ThinkGeo.Core.GdalManager.8EE=(System.String)
at ThinkGeo.Core.GdalManager.7UE=()
at ThinkGeo.Core.GdalManager.60E=()
at ThinkGeo.Core.GdalManager…cctor()Exception Info: System.TypeInitializationException
at ThinkGeo.Core.GdalManager.ConfigureGdal()
at ThinkGeo.Core.GdalProjectionConverter…cctor()Exception Info: System.TypeInitializationException
at ThinkGeo.Core.GdalProjectionConverter…ctor()
at TestApp.MainWindow+<MapView_Loaded>d__17.MoveNext() at
On Win11 it works fine. Please check what’s the problem.
Br, Simo