Windows error 0x800401D0, -2147221040

Detailed Error Information

CLIPBRD_E_CANT_OPEN[1]

MessageOpenClipboard Failed
Declared inwinerror.h

HRESULT analysis[2]

FlagsSeverityFailure
Reserved (R)false
OriginMicrosoft
NTSTATUSfalse
Reserved (X)false
FacilityCode4 (0x004)
NameFACILITY_ITF[2][1]
DescriptionThe source of the error code is COM/OLE Interface management.[2][1]
Error Code464 (0x01d0)

Questions

81votes
11answers

OpenClipboard failed when copy pasting data from WPF DataGrid

I've got a WPF application using datagrid. The application worked fine until I installed Visual Studio 2012 and Blend+SketchFlow preview. Now, when I'm trying to copy the data from the grid into the clipboard with Ctrl + C (in any application), I'm getting the following exception: System.Runtime.InteropServices.COMException (0x800401D0): OpenClipboard Failed [...] read more
c#
wpf
datagrid
clipboard
copy-paste
9votes
1answer

WPF Datagrid COMException on using IncludeHeader ClipboardCopyMode

In my WPF app, I am using a Datagrid control; in the control definition I defined ClipboardCopyMode property as 'IncludeHeader'. <DataGrid Name="datagrid" ClipboardCopyMode="IncludeHeader"> </DataGrid> At times, when I try to copy any data from grid, I am encountering HRESULT clipboard crash error - System.Runtime.InteropServices.COMException (0x800401D0): OpenClipboard Failed (Exception from HRESULT: [...] read more
.net
wpf
wpfdatagrid
clipboard
4votes
0answers

OpenClipboard fails with 0x800401D0 (CLIPBRD_E_CANT_OPEN))

I have a simple WPF app which creates a Thread, polls the clipboard every second and trims any strings it finds However, in the background thread, once the string content changes, the clipboard methods fail with the exception OpenClipboard Failed (Exception from HRESULT: 0x800401D0 (CLIPBRD_E_CANT_OPEN)) Example: I have "ABC" on [...] read more
c#
wpf
windows-8.1
3votes
2answers

Clipboard opening failed

I am having a problem regarding clipboard and I get this error message every time I try to make a copy / paste operation from an Excel file. The code breaks at Clipboard.GetDataObject() and the message error is this: OpenClipboard Failed (Exception from HRESULT: 0x800401D0 (CLIPBRD_E_CANT_OPEN)) My WPF application is [...] read more
wpf
clipboard
clipboarddata
2votes
2answers

Copy to clipboard failed in WPF Datagrid (CLIPBRD_E_CANT_OPEN)

I am having trouble copying cells from a WPF datagrid. I have a few other text editor windows (like Avalonedit) in the same app from where I can copy to Clipboard but not from the datagrid. Whenever, I try to copy even one cell I get the message "Open Clipboard [...] read more
c#
wpf
wpfdatagrid
2votes
1answer

GetDataObject Requested Clipboard operation did not succeed 0x800401D0

I made an AddIn for Excel (2016), that saves the print area as a jpg file. It worked fine for a few months. Nowadays I get more and more error reports from users, all get the same error (picture below). The users have Windows 7 with Excel 2013 or Windows [...] read more
c#
excel
vsto
clipboard
excel-addins
1vote
0answers

How to get rid of clipboard error - intermittent?

Sometimes I get a clipboard error. I've researched this and found that there is a better way to do this, but being new I can't figure out how to integrate it in my code. Trying to make it more stable. Tried multiple ways to convert the information. Looking to fix [...] read more
c#
wpf
clipboard
1vote
0answers

Having exception with Clipboard while using Inputsimulator

My project is about text processing software and using InputSimulator library. When my program simulate Ctrl+C and get text from clipboard, It gave an exception like this. An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in PresentationCore.dll Additional information: OpenClipboard Failed (Exception from HRESULT:0x800401D0 (CLIPBRD_E_CANT_OPEN)) here's my project and here's my [...] read more
c#
wpf
1vote
0answers

WPF DataGridView CTRL+C Try Catch

i'm having issues with CTRL + C on my app. I know for a fact that when a certain program (DameWare for example) is locking the clipboard my app getting exception when using it (OpenClipboard Failed CLIPBRD_E_CANT_OPEN HRESULT:0x800401D0). So whenever i use the clipboard i wrap it with a try [...] read more
c#
wpf
mvvm
datagridview
clipboard
0votes
0answers

What is System.Runtime.InteropServices.ExternalException (0x800401D0)?

I am using MS office (Professional Plus 2019) Word. In the application there is clipboard. i was able to copy equation and paste the equation correctly before few days. currently there is some issue with MS .net Framework. Due to which i am unable to copy the equation in the [...] read more
microsoft-word
microsoft-office
clipboard
.net-framework
microsoft-word-2019
0votes
0answers

Elegant way to parse Clipboard content following a mouse event

I'm trying to find an elegant way to parse the Clipboard content following a mouse event in C#. I'm currently creating a tool in C# WinForm for the game "PathOfExile" that would basically do the following: On mouse down over an item if the item contain any desirable mod Disable [...] read more
c#
clipboard
mousekeyhook
0votes
0answers

OpenClipboard Failed (Exception from HRESULT: 0x800401D0 (CLIPBRD_E_CANT_OPEN))"}

I am getting this error while copying an image code to copy data in wpf app- Clipboard.SetImage(bmp); code to paste copied data in uwp app - DataPackageView dataPackageView = Clipboard.GetContent(); read more
wpf
uwp
clipboard
copy-paste
0votes
0answers

OpenClipboard Failed (HRESULT: 0x800401D0) after a series of copy/paste via Excel Interop

I have an Excel VSTO add-in which copy/pastes shapes from one source worksheet to a destination worksheet (both in same workbook). The destination worksheet contains data entries (one row per entry). A routine performs the following, for each row: 1. Get data 2. Calculate X-Y position based on data 3. [...] read more
c#
.net
excel
vb.net
vsto
0votes
0answers

Clipboard in Excel file

> OpenClipboard Failed (Exception from HRESULT: 0x800401D0 > (CLIPBRD_E_CANT_OPEN))' I'm trying to put a text in an excel file (using Interop). String EE = "Some random text here"; Thread thread1 = new Thread(() => Clipboard.SetText(EE)); thread1.SetApartmentState(ApartmentState.STA); //Set the thread to STA thread1.Start(); thread1.Join(); //Wait for the thread to end Microsoft.Office.Interop.Excel.Range [...] read more
c#
0votes
1answer

C# Wpf DataGrid copy makes Application go in Break Mode

I'm new to C# and WPF, i'm using a WPF Datagrid in my Application and on my Work Computer whenever i select some cells and press ctrl + c to copy their content it makes the application go into break mode. The error i'm getting is > Blockquote System.Runtime.InteropServices.COMException: 'OpenClipboard [...] read more
c#
wpf
0votes
1answer

Why TextBlock.Text doesn't get updated the first time (of two) I set its content? and how to resolve/work-around it?

Clipboard.SetText(...) very often creates considerable delay in my GUI. Set aside for now "correct-programming/design", I want to tell the user to wait a moment (line #01), and then let him/her know if succeeded or failed (lines #06 and #10). The thing is that I never see the "Copying..." text (line [...] read more
c#
wpf
multithreading
dispatcher
0votes
1answer

Complicated Preg_Match - match 500 characters after finding a keyword but dont start until the next line break

First to explain im new to php and im very new to preg_match and find it confusing, what im trying to do is find a keyword: exception: and then starting from the next line pull out 300 characters I already have a pregmatch in place for this but want to [...] read more
php
preg-match
substr

Comments

Leave a comment

(plain text only)

Sources

  1. winerror.h from Windows SDK 10.0.14393.0
  2. https://msdn.microsoft.com/en-us/library/cc231198.aspx

User contributions licensed under CC BY-SA 3.0