Windows error 0x800401D3, -2147221037

Detailed Error Information

CLIPBRD_E_BAD_DATA[1]

MessageData on clipboard is invalid
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 Code467 (0x01d3)

Questions

3votes
1answer

Error while pasting object from Clipboard

This is my code for copying and pasting an object to the clipboard: private void CopyObject() { Clipboard.SetData(ClipboardDataFormats.SampleData, this.SelectedSampleObject); } private void PasteObject() { if (Clipboard.ContainsData(ClipboardDataFormats.SampleData) == true) { var sampleObject = (SampleClass)Clipboard.GetData(ClipboardDataFormats.SampleData); // exception } } I receive following exception when I call Clipboard.GetData() > System.Runtime.InteropServices.COMException Data on clipboard [...] read more
c#
.net
entity-framework
clipboard
1vote
0answers

Prevent 0x800401D3 CLIPBRD_E_BAD_DATA Error

Upon running the below code, every so often I can get an error > System.Runtime.InteropServices.COMException: Data on clipboard is invalid > (Exception from HRESULT: 0x800401D3 (CLIPBRD_E_BAD_DATA)) I handle the error by the tried and true try-catch block, which is fine for my needs, but the app goes into a state [...] read more
c#
.net
x86
clipboard
0votes
0answers

How can be pasted remotely a locally copied file in C#?

A file (from File Explorer) has been copied using < Ctrl > < C >. The content of the file must be pasted into a RichTextBox, if the file is a picture (e.g. in JPG format) - similarly to Microsoft Word. It's already implemented and works without any problem - [...] read more
c#
exception
clipboard
remote-desktop

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