Our application started crashing on Surface Pros when 8.1 came out when the user unsnaps or snaps the keyboard. It only happens periodically but is repeatable. As far as we know this is not happening on 8.0.
The error we get is a null reference in PresentationCore
at System.Windows.Input.StylusLogic.GenerateInRange(RawStylusInputReport rawStylusInputReport)
at System.Windows.Input.StylusLogic.IsValidStylusAction(RawStylusInputReport rawStylusInputReport)
at System.Windows.Input.StylusLogic.PreProcessInput(Object sender, PreProcessInputEventArgs e)
at System.Windows.Input.InputManager.ProcessStagingArea()
...
Also when the user unsnaps or snaps the keyboard, instead of crashing - sometimes it goes into a state where the stylus does not work properly in the application. The Hover-overs do not register, and the touches register as a hover-over. It is impossible to use the stylus as a "click" in this state. However touch and mouse controls work as expected.
Our application is using .NET 4.0 with C# and xaml.
Is there anything we can do to mitigate this issue?
Thanks,
Damon