Windows error 0x8007057A, -2147023494

Detailed Error Information

INVALID_CURSOR_HANDLE[1]

MessageInvalid cursor handle.
Declared inwinerror.h

HRESULT analysis[2]

FlagsSeverityFailure
Reserved (R)false
OriginMicrosoft
NTSTATUSfalse
Reserved (X)false
FacilityCode7 (0x007)
NameFACILITY_WIN32[2][1]
DescriptionThis region is reserved to map undecorated error codes into HRESULTs.[2][1]
Error Code1402 (0x057a)

This is a Win32 error which has been mapped into an HRESULT. More information may be available in error 0x0000057a.

Questions

2votes
0answers

Imaging.CreateBitmapSourceFromHIcon throws COMException

I use Imaging.CreateBitmapSourceFromHIcon method to convert Icon to BitmapSource: private static System.Windows.Media.ImageSource loadWpfImageSource(Icon icon, Size size) { if (icon != null) { return Imaging.CreateBitmapSourceFromHIcon(icon.Handle, Int32Rect.Empty, BitmapSizeOptions.FromEmptyOptions()); } return null; } At one of my client's computer Imaging.CreateBitmapSourceFromHIcon throws the next COMException: System.Runtime.InteropServices.COMException (0x8007057A): Wrong pointer descriptor. (Exception from HRESULT: 0x8007057A) [...] read more
c#
wpf
winforms-interop
system.drawing.imaging
2votes
1answer

Only Icons Missing from desktop

I opened the PC in the morning, and this is what I got: Desktop [https://i.stack.imgur.com/5sTv6.jpg] This PC [https://i.stack.imgur.com/bEqj9.png] Start Menu [https://i.stack.imgur.com/mL7dS.png] Control Panel-A [https://i.stack.imgur.com/1aDVk.png] Control Panel-B [https://i.stack.imgur.com/NkM7L.png] As is visible the icons of the UWA apps were no affected and the start menu also is unaffected. When Control Panel is [...] read more
windows
windows-explorer
desktop-icons
1vote
1answer

Why does SetOverlayIcon throw an 'Invalid cursor handle' COMException occasionally?

In my C# Winforms application I'm using the ITaskbarList3::SetOverlayIcon interface to set status overlays on the application's taskbar button (under Windows 7). This all seems to work fine for me, with the icons being shown and removed correctly. From the form load event, one of my functions makes the call [...] read more
c#
.net
windows-7

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