本帖最后由 flygoodkiller 于 2021-3-17 19:10 编辑
该错误随机出现,无规律,已发生多次,但不是每次。大多是在编辑完某个命令,或打开某窗口并关闭之后,然后直接关闭设计器时出现。
## Overview
- Version: 7.0.0.0
- Exception: `System.InvalidOperationException`
- DateTime: 2021-3-17 19:04:01
- Email: 已删除
- Tags: #CN
## Exception
```json
{
"ClassName": "System.InvalidOperationException",
"Message": "在 Window 关闭时,无法将 Visibility 设置为 Visible,也无法调用 Show、ShowDialog、Close 或 WindowInteropHelper.EnsureHandle。",
"Data": {
"$type": "System.Collections.ListDictionaryInternal, mscorlib",
"System.Object": null
},
"InnerException": null,
"HelpURL": null,
"StackTraceString": " 在 System.Windows.Window.VerifyNotClosing()
在 System.Windows.Window.InternalClose(Boolean shutdown, Boolean ignoreCancel)
在 Forguncy.MainWindow.<MainWindow_Closing>d__43.MoveNext()
--- 引发异常的上一位置中堆栈跟踪的末尾 ---
在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)",
"RemoteStackTraceString": null,
"RemoteStackIndex": 0,
"ExceptionMethod": "8
VerifyNotClosing
PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
System.Windows.Window
Void VerifyNotClosing()",
"HResult": -2146233079,
"Source": "resentationFramework",
"WatsonBuckets": null
}
```
## EventLog
- 19:04:00 `MouseL`:Windowocument111.fgcc - 活字格
- 19:00:58 `MouseL`:EditorMenuItem:复制(_C)->Inline:复制(_C)
- 19:00:57 `MouseR`:Window:命令窗口->TextBox:javaScriptTextBox
- 19:00:55 `MouseL`:Window:命令窗口->TextBox:javaScriptTextBox
- 19:00:51 `MouseL`:Windowocument111.fgcc - 活字格->Tab:页面设置->编辑页面加载时命令...
- 19:00:50 `MouseL`:Windowocument111.fgcc - 活字格->Tab:单元格设置->页面设置
- 19:00:49 `MouseL`:Windowocument111.fgcc - 活字格->Tab:单元格设置->单元格设置
- 19:00:49 `MouseL`:Windowocument111.fgcc - 活字格->Tab:单元格设置
## ActionList
|