Skip to content

crashes on ctrl+c #6

@phatlewt

Description

@phatlewt

crashes on ctrl+c copy, using WinForms .Net 8 on windows 10 x64.
any workarounds?

Stack trace:

System.ArgumentNullException: Value cannot be null. (Parameter 'second')
at System.Linq.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument)
at System.Linq.Enumerable.Intersect[TSource](IEnumerable1 first, IEnumerable1 second, IEqualityComparer1 comparer) at FastColoredTextBoxNS.Text.ExportToRTF.GetRtfDescriptor(IEnumerable1 styles)
at FastColoredTextBoxNS.Text.ExportToRTF.Flush(StringBuilder sb, StringBuilder tempSB, IEnumerable`1 currentStyles)
at FastColoredTextBoxNS.Text.ExportToRTF.GetRtf(TextSelectionRange r)
at FastColoredTextBoxNS.FastColoredTextBox.OnCreateClipboardData(DataObject data)
at FastColoredTextBoxNS.FastColoredTextBox.Copy()
at FastColoredTextBoxNS.FastColoredTextBox.DoAction(FCTBAction action)
at FastColoredTextBoxNS.FastColoredTextBox.ProcessKey(Keys keyData)
at FastColoredTextBoxNS.FastColoredTextBox.OnKeyDown(KeyEventArgs e)
at System.Windows.Forms.Control.ProcessKeyEventArgs(Message& m)
at FastColoredTextBoxNS.FastColoredTextBox.ProcessKeyMessage(Message& m)
at System.Windows.Forms.Control.WmKeyChar(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(HWND hWnd, MessageId msg, WPARAM wparam, LPARAM lparam)
at Windows.Win32.PInvoke.DispatchMessage(MSG* lpMsg)
at System.Windows.Forms.Application.ComponentManager.Microsoft.Office.IMsoComponentManager.FPushMessageLoop(UIntPtr dwComponentID, msoloop uReason, Void* pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(msoloop reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(msoloop reason, ApplicationContext context)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions