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

报错信息 1
AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
StackTrace:
   at MS.Win32.Penimc.UnsafeNativeMethods.GetPenEventMultiple(Int32 cCommHandles, IntPtr[] commHandles, IntPtr handleReset, Int32& iHandle, 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()

版本:1.44.10 2025-07-23 09:55 Microsoft Windows NT 6.1.7601 Service Pack 1