Windows error 0x80131520, -2146233056

Detailed Error Information

COR_E_THREADSTATE[1]

Message"Thread is in an invalid state for this operation."
Comment Indicate that the Thread class is in an invalid state for the method call

HRESULT analysis[2]

FlagsSeverityFailure
Reserved (R)false
OriginMicrosoft
NTSTATUSfalse
Reserved (X)false
FacilityCode19 (0x013)
NameFACILITY_URT[2][3]
DescriptionThe source of the error code is .NET CLR.[2][3]
Error Code5408 (0x1520)

Questions

0votes
0answers

Current thread must be set to single thread apartment (STA) mode error DataGridView

I have a frustrating issue where I have a really simple grid which crashes the application with the error below if I press CTRL C to copy to the clipboard Current thread must be set to single thread apartment (STA) mode before OLE calls can be made. Ensure that your [...] read more
c#
winforms

Comments

Leave a comment

(plain text only)

Sources

  1. https://github.com/dotnet/coreclr/blob/v1.1.0/src/inc/corerror.xml
  2. https://msdn.microsoft.com/en-us/library/cc231198.aspx
  3. winerror.h from Windows SDK 10.0.14393.0

User contributions licensed under CC BY-SA 3.0