OutOfMemoryException: 引发类型为“System.OutOfMemoryException”的异常。 StackTrace: 在 System.Windows.Input.PenThreadWorker.RemovePenContext(PenContext penContext) 在 System.Windows.Input.PenThreadWorker.WorkerOperationRemoveContext.OnDoWork() 在 System.Windows.Input.PenThreadWorker.WorkerOperation.DoWork() 在 System.Windows.Input.PenThreadWorker.ThreadProc() 在 System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) 在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) 在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) 在 System.Threading.ThreadHelper.ThreadStart()