When creating MapPoints to define stops for a route, I was under the impression that these would accept longitude and latitude coordinates. I tried to calculate a route using these coordinates and my application had a hard crash due to an access violation.
I figured out that I could convert from longitude latitude to mappoints using CoordinateFormatter.FromLatitudeLongitude(). This has solved my issue. I guess before it was trying to route between points that were not in the offline map package I was using.
I thought I would let you know about this hard crash. Attached is a project that reproduces the issue. I am using 100.5.0 of the .NET SDK and I'm using the belgium.mmpk map which I downloaded from https://developers.arcgis.com/downloads/streetmap-premium-for-runtime. I also tried the 100.4.0 .NET SDK and got the same problem.