XamlParseException: 对类型“Quicker.View.Controls.CodeEditor”的构造函数执行符合指定的绑定约束的调用时引发了异常。 --LineNumber: 0 --LinePosition: 0 --BaseUri: pack://application:,,,/Quicker;component/view/controls/textboxwithtoolscontrol.xaml StackTrace: 在 System.Windows.Markup.XamlReader.RewrapException(Exception e, IXamlLineInfo lineInfo, Uri baseUri) 在 System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri) 在 System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri) 在 System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream) 在 Quicker.View.X.ActionDesignerWindow.InitializeComponent() 在 Quicker.View.X.ActionDesignerWindow..ctor(SQLDataMgr sqlDataMgr, ActionItem editingActionItem, Boolean isGlobalSubProgram, Boolean isReadonly) 在 Quicker.Domain.Services.ActionEditMgr.EditAction(ActionProfile profile, Int32 row, Int32 col, ActionItem actionItem, Nullable`1 newActionType, EditActionParam editParam, Boolean forceReadonly) 在 Quicker.Domain.Services.ActionEditMgr.EditActionById(String actionId, EditActionParam editParam, Boolean forceReadOnly) 在 Quicker.Domain.Services.ActionEditMgr.<>c__DisplayClass57_0.bxFalkFqc2s(Object sender, RoutedEventArgs args) 在 System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised) 在 System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args) 在 System.Windows.Controls.MenuItem.InvokeClickAfterRender(Object arg) 在 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) TargetInvocationException: 调用的目标发生了异常。 StackTrace: 在 System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) 在 System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) 在 System.Activator.CreateInstance[T]() 在 ICSharpCode.AvalonEdit.Rendering.TextView.AddRemoveDefaultElementGeneratorOnDemand[T](T& generator, Boolean demand) 在 ICSharpCode.AvalonEdit.Rendering.TextView.UpdateBuiltinElementGeneratorsFromOptions() 在 ICSharpCode.AvalonEdit.Rendering.TextView.OnOptionChanged(PropertyChangedEventArgs e) 在 ICSharpCode.AvalonEdit.Rendering.TextView.OnOptionsChanged(DependencyObject dp, DependencyPropertyChangedEventArgs e) 在 System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e) 在 System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e) 在 ICSharpCode.AvalonEdit.Rendering.TextView.OnPropertyChanged(DependencyPropertyChangedEventArgs e) 在 System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args) 在 System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType) 在 System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal) 在 System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value) 在 ICSharpCode.AvalonEdit.Rendering.TextView..ctor() 在 ICSharpCode.AvalonEdit.Editing.TextArea..ctor() 在 ICSharpCode.AvalonEdit.TextEditor..ctor() 在 Quicker.View.Controls.CodeEditor..ctor() TypeInitializationException: “ICSharpCode.AvalonEdit.Rendering.LinkElementGenerator”的类型初始值设定项引发异常。 --TypeName: ICSharpCode.AvalonEdit.Rendering.LinkElementGenerator StackTrace: 在 ICSharpCode.AvalonEdit.Rendering.LinkElementGenerator..ctor() AccessViolationException: 尝试读取或写入受保护的内存。这通常指示其他内存已损坏。 StackTrace: 在 System.Text.RegularExpressions.Regex..ctor(String pattern, RegexOptions options, TimeSpan matchTimeout, Boolean useCache) 在 System.Text.RegularExpressions.Regex..ctor(String pattern) 在 ICSharpCode.AvalonEdit.Rendering.LinkElementGenerator..cctor()