HRESULT is used as a return value to determine the success or failure of a function.
Questions tagged [hresult]
168 questions
1
vote
2 answers
Handling HRESULTs in a Direct2D application
In Kenny Kerr's msdn magazine articles on imaging and Direct2D he frequently uses HR() macro.
In his Windows Imaging Component article - http://msdn.microsoft.com/en-gb/magazine/cc500647.aspx
he writes -
Finally, the WIC API makes use of HRESULTs…

Duncan Gravill
- 4,552
- 7
- 34
- 51
1
vote
1 answer
Error looping over ShellWindows
I occasionally get the "Error HRESULT E_FAIL has been returned from a call to a COM component." error when looping over the ShellWindows class. Seems to happen mostly after the computer wakes from sleeping. I have to restart my computer to clear…

Michael Remijan
- 687
- 7
- 22
1
vote
2 answers
Error HRESULT 0x88982F72 when trying streaming image file
I'm trying to stream an image file with the simple code below.
Stream stream = File.OpenRead(myFileInfo.ToString());
When I do it, Visual Studio send me an exception.
This file is a simple jpeg.
In Debug mode, I see with the BitmapDecoder class…

Damien Delotel
- 11
- 6
1
vote
2 answers
Multiple Kinects using Kinect for Windows SDK 1.5
I'm trying to make two Kinects getting along under the same application. I've tried to start all the connected Kinects (by calling the Start() method), but only one has the "isRunning" flag set on true. Does anyone know why is only one sensor…

VladN
- 729
- 1
- 10
- 29
1
vote
4 answers
Kinect Initialization error (Failed in native DLL. HRESULT=0x8004022b.)
I've been developing with kinect XBOX 360 for a while.
Today, after connecting a different kinect device (XBOX 360) i've started getting an error
on the initalization line:
kinect.Initialize(RuntimeOptions.UseSkeletalTracking |…

oded
- 11
- 1
- 3
0
votes
1 answer
HRESULT = 80004005 with Visual Studio 2008
I'm getting this error when building my project, and I can't fix it.
I have two solutions with the same setup projects referenced in both, and probably thus, the problem.
I googled, I look it up here in StackOverflow, and did all what people said…

noloman
- 11,411
- 20
- 82
- 129
0
votes
1 answer
XNA 3.1 Preserving the Depth Buffer before it clears
I'm trying to get around XNA 3.1's automatic clearing of the depth buffer when switching render targets by copying the IDirect3DSurface9 from the depth buffer before the render targets are switched, then restore the depth buffer at a later point.
In…

Enigami
- 1
0
votes
1 answer
Proper HRESULT for "this object is not completely initialized"
I'm writing a COM object that provides access to a service that must be explicitly connected before calls can succeed.
Is there a generic HRESULT code that describes that the callee object is in a state where it is unprepared to handle calls,…

Simon Richter
- 28,572
- 1
- 42
- 64
0
votes
1 answer
Get more debug info from AxHost?
I'm trying to deploy an application which uses an library that embeds an ActiveX control with AxHost in C#.
When I run the installed app on our test rig I catch and present the following exception:
Unexpected exception.
This application has failed…

Presidenten
- 6,327
- 11
- 45
- 55
0
votes
0 answers
MFCreateSinkWriterFromURL returns E_ACCESSDENIED
MFCreateSinkWriterFromURL returns E_ACCESSDENIED General access denied error. The first parameter of MFCreateSinkWriterFromURL is a local folder path, which was changed to 0x34546618 L"??\C:\WINDOWS\System32\mfreadwrite.dll" after execution enter…

dyang
- 1
0
votes
0 answers
how to fix : unable to start debugging the startup project could not be launched. The docfile has been corrupted
enter image description here
how to fix : unable to start debugging the startup project could not be launched. The docfile has been corrupted
suggest a solution to help me, and spread it to the community I think many people are having the same…
0
votes
0 answers
DLL initialization routine failed
I was trying to install TimeQPlus from Acroprint on a new PC when I encountered this error message. I contacted Acroprint only to find out they were bought out by Workwell and no longer make or support this software.
I would really appreciate it if…

EdS817
- 1
0
votes
1 answer
When WINAPI calls my code and an exception is thrown, should I catch it and return an HRESULT instead?
I have implemented IThumbnailProvider which gets compiled to a dll and then registered using regsvr32.
Within the code, I make use of STL containers such as std::vector:
std::vector someRGBAccumulatorForDownsamplingToThumbnail =…

Zyl
- 2,690
- 2
- 22
- 27
0
votes
1 answer
Datagridview Error After Rowfilter -> Data Update/Add and Fill Process
I have a datagridview which filled by SQL table. When I search a value with a textbox in the data and update/insert the some values and use fill function again I get this error
"System.NullReferenceException HResult=0x80004003 Message=Object…

Gürkan Özdem
- 109
- 7
0
votes
0 answers
Catastrophic failure(Exception HRESULT: 0x8000FFFF (E_UNEXPECTED)) while trying to use MS WebView2 in ASP,NET Web API in production environment
I'm getting 'Catastrophic failure(Exception HRESULT: 0x8000FFFF (E_UNEXPECTED))' run-time error while trying to use MS WebView2 in ASP.NET Web API in production environment (Win10, IIS v.20H2 (OS Build 19042, 1586)) - see details in the code…

ShamilS
- 1,410
- 2
- 20
- 40