AnsweredAssumed Answered

App crashes randomly with (0xc0000005) 'Access violation'

Question asked by k.gispergmysynergis-esridist Employee on Jun 8, 2017
Latest reply on Sep 14, 2017 by stefan.jungesri-de-esridist



We are developing an app with ArcGIS Runtime .NET 100.0.0, that offers interaction with offline maps.


In general we are using the MVVM Model. The MapView.Map binds to a ViewModel.class Map Property CurrentMap.  This class also contains a  Map Property OfflineMap, which holds reference to a corresponding Map with offline-content .

During initial loading (with some async stuff in previous steps), the (offline) Layers are attached to  the OfflineMap Map and after awaiting OfflineMap.LoadAsync(); the Property CurrentMap is assigned to OfflineMap.


Our problem is that the app crashes randomly at the line

this.ProjectManagerViewModelInstance.CurrentMap = this.ProjectManagerViewModelInstance.OfflineMap;

with an exception we cannot handle.The output window shows:

[…MyApp...]WPF.vshost.exe' has exited with code -1073741819 (0xc0000005) 'Access violation'.


public async Task LoadProjectWithTaskSampleAsync(

            object param)




                #region checkProject

                // our "progressbar"


               //read project information from parameter

                var pi = await this.ProjectManagerViewModelInstance.InitConnectionInformationAsync(param);

                if (pi == null)


                    Log.Warn(" ... ");





                 #endregion checkProject


                this.ToogleReporter("LoadProject", true);

                 //MAP CREATION AND ASSIGN TO OFFLINE MAP PROPERTY (and other stuff like processing  layer infos ...)

                await this.ProjectManagerViewModelInstance.LoadProjectAsync(pi);


                // check if all information could be loaded properly

                if (await this.TryToOpenProjectAsync(pi))


                    this.ToogleReporter("LoadProject", false);




                // Check if offline map has layers

                var offlineMapAllLayers = this.ProjectManagerViewModelInstance?.OfflineMap?.AllLayers;

                if (offlineMapAllLayers != null && offlineMapAllLayers.Any())


                    Log.Debug("Await call OfflineMap.LoadAsync()");

                    await this.ProjectManagerViewModelInstance.OfflineMap.LoadAsync();

                    this.ProjectManagerViewModelInstance.CurrentMap = this.ProjectManagerViewModelInstance.OfflineMap;


                IsLoadingProject = false;


            catch (Exception e)


                Log.Error("Loading Project Failed. Abort! ",e);




                this.ToogleReporter("LoadProject", false);




The offline map contains 1 vtpk (52 MB), 1 tpk (15 GB) and 2 mmpks(85 MB and 3 MB). The problem seems to occur only on offline maps with *.mmpks (but still randomly).


Can you help us? I attach the memory dumps, maybe it helps.


Thank you


We are using:


Microsoft Visual Studio Professional 2015

Version 14.0.25421.03 Update 3

Microsoft .NET Framework

Version 4.6.01586


Installed Version: Professional


Visual C# 2015   00322-40000-00000-AA460

Microsoft Visual C# 2015


ArcGIS Runtime SDK for .NET   100.0.0


Microsoft Windows 10 Enterprise