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()