FeatureSamples: Navigation sample on UWP throws exception.

This sample works with teleportation, but not with navigation. This sample for WinForms and WPF works fine.

When the endpoint is chosen by a mouse click, and then a press on the button 'Set', this line of code:

var result = navMesh.FindPath(jackNode.Position, endPos);

Throws this exception:

Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

Have tried running this on hololens and same exception happens in the same way. All else works.

The CrowdNavigation sample uses a bit different approach to navigation, which is more complex, but works.

Sign In or Register to comment.