Update
Microsoft has confirmed this issue :
Door Gepost Microsoft op 10/10/2017 om 11:38
Thank you for reporting this. We are aware of this issue and are fixing it in a future version of .NET. There is also a related issue that is being released in a service fix that will drastically reduce the likelihood of a collision with this issue. It will be serviced relatively soon.
Problem
Our WPF application is used on touch-enabled tablets (no stylus), and we ran into problems after installing the .NET Framework 4.7. After using the application, two scenarios may arise: either the application is completely frozen and needs to be restarted, or all the touch functions in the elements are disabled Popupor Windowdisabled. There is a big difference between them, but I think the reason is the same.
Scenario 1: complete freeze
- The application is completely unresponsive, the application must be closed using the task manager
- You can use a touch or mouse.
- Sometimes before an application freezes, the following error occurs:
The index was outside the array.
This is stacktrace:
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at System.Windows.Input.StylusWisp.WispLogic.CoalesceAndQueueStylusEvent(RawStylusInputReport inputReport)
at System.Windows.Input.StylusWisp.WispLogic.ProcessSystemEvent(PenContext penContext, Int32 tabletDeviceId, Int32 stylusDeviceId, Int32 timestamp, SystemGesture systemGesture, Int32 gestureX, Int32 gestureY, Int32 buttonState, PresentationSource inputSource)
at System.Windows.Input.PenContext.FireSystemGesture(Int32 stylusPointerId, Int32 timestamp)
at System.Windows.Input.PenThreadWorker.FireEvent(PenContext penContext, Int32 evt, Int32 stylusPointerId, Int32 cPackets, Int32 cbPacket, IntPtr pPackets)
at System.Windows.Input.PenThreadWorker.ThreadProc()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
Scenario 2: partial freezing
- - ( ), "" (Modal Dialog,
Window, Popup DatePicker, ComboBox,...) . . - "overlay".
.
.
- , Windows, Windows 8.1 Windows 10.
- .NET Framework 4.7
- 2 ,
ComboBox . . - 1 .
< >
, , StylusWisp. , .
Stylus DisableWPFTabletSupport DisableStylusAndTouchSupport, . ScrollViewer PanningMode="Both" .
A Microsoft. , . , .NET Framework 4.7, . - ?