Windows error 0x887A0001, -2005270527

Detailed Error Information

DXGI_ERROR_INVALID_CALL[1]

MessageThe application made a call that is invalid. Either the parameters of the call or the state of some object was incorrect. Enable the D3D debug layer in order to see details via debug messages.
Declared inwinerror.h

HRESULT analysis[2]

FlagsSeverityFailure
Reserved (R)false
OriginMicrosoft
NTSTATUSfalse
Reserved (X)true
FacilityCode2170 (0x87a)
NameFACILITY_DXGI[1]
Error Code1 (0x0001)

Questions

6votes
1answer

Invalid Call on ReleaseFrame() in DesktopDuplication API

An user of my app is having some problem capturing the screen with the DesktopDuplication API. Upon starting the capture, the app crashes because the app is unable to release the frame of the OutputDuplication. User's PC details: Windows 10.0.18362.0, 64 bits Nvidia GeForce GTX 960, driver version 441.66 Error [...] read more
c#
sharpdx
desktop-duplication
4votes
1answer

Resizing a DXGI swap chain bound to a Direct2D render target

I have a Direct2D render target created with ID2D1Factory::CreateDxgiSurfaceRenderTarget. When I receive a WM_SIZE message, I try to resize the corresponding swap chain by calling IDXGISwapChain::ResizeBuffers, but it fails with DXGI_ERROR_INVALID_CALL (0x887a0001). I believe it's because of the following stated by the ResizeBuffers documentation: > You can't resize a swap [...] read more
c++
direct3d
direct2d
dxgi
4votes
3answers

failure to create a DirectX device and swapchain

I am having issues retrieving a swapchain and device from directx. further info is in the code void GXDX::StartUp(HWND* mainWindow,int w, int h) { //width and height are members of GXDX width = w; //contains the width height = h; //contains the height this->mainWindow = mainWindow; // Is a handle [...] read more
c++
visual-studio
visual-c++
2votes
1answer

Getting multiple screen buffers from swap-chain

I want to create multiple render target view and i tried it but i can't get buffer more than 2. I've already set DXGI_SWAP_CHAIN_DESC's BufferCount value as BufferSize UINT const BufferSize = 4; ID3D11Texture2D* BufferTemp; ID3D11RenderTargetView** RenderTargetView = new ID3D11RenderTargetView*[BufferSize]; for (UINT i = 0; i < BufferSize; i++) { [...] read more
c++
directx
directx-11
dxgi
2votes
1answer

Get GDI DC from ID3D11Texture2D for drawing

I have an implementation in directx9 where I have taken GDI DC to render drawing. But the similar code in directx11 does not get GDI DC instead throws invalid call exception. Implementation in directx9: IF_DX9ERR_THROW_HR(m_spIDevice->CreateTexture(UINT(cSizeOverlay.cx), UINT(cSizeOverlay.cy), 1, D3DUSAGE_DYNAMIC, D3DFMT_X8R8G8B8, D3DPOOL_DEFAULT, &m_spIOverlay, nullptr)); m_spIOverlaySurface = nullptr; IF_DX9ERR_THROW_HR(m_spIOverlay->GetSurfaceLevel(0, &m_spIOverlaySurface)); D3DSURFACE_DESC descOverlay; ::ZeroMemory(&descOverlay, [...] read more
c++11
gdi
directx-11
directx-9
texture2d
2votes
1answer

IDXGISwapChain::ResizeBuffers() 0x887a0001 DXGI_ERROR_INVALID_CALL

When calling IDXGISwapChain::ResizeBuffer() the call fails and returns this error from the HRESULT 0x887a0001 otherwise known as DXGI_ERROR_INVALID_CALL. What happens prior to this call is, I call ID3D11DeviceContext::ClearState() and release the ID3D11RenderTargetView and ID3D11DepthStencilView. The above views are the only views bound to the the IDXGISwapChain. I will post the [...] read more
c++
resize
buffer
direct3d11
1vote
1answer

Dear IMGUI and DirectX 12 Overlay (DXGI_ERROR_INVALID_CALL)

I'm trying to make a simple frame counter for DirectX 12 games using Dear IMGUI. I simply want to overlay a small transparent window that displays the sequential order of frames during gameplay. To do so, I hook Present(), so I can get the SwapChain, and count the number of [...] read more
c++
directx-12
imgui
1vote
1answer

Setting AlphaMode member of DXGI_SWAP_CHAIN_DESC1 makes CreateSwapChainForHwnd fail with 0x887a0001

I want to create a swap chain that I can alter my alpha values so it can get semi-transparent. My code is here: #include <Windows.h> #include <d3d11.h> #include <d2d1_3.h> #include <dxgi1_6.h> #include <dwmapi.h> #pragma comment(lib, "d3d11.lib") #pragma comment(lib, "dwmapi.lib") #pragma comment(lib, "d2d1.lib") LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wparam, [...] read more
c++
winapi
directx
direct3d
dxgi
1vote
1answer

Exception when creating Swap Chain with CreateSwapChainForComposition

I am trying to render DirectX12 in SwapChainPanel by using SharpDx but creating a SwapChain fails for an unknown reason. Here is a simplified version of what I have: // select adapter based on some simple scoring mechanism SelectedAdapter = SelectAdapter(); // create device using (var defaultDevice = new Device(SelectedAdapter, [...] read more
c#
xaml
uwp
sharpdx
directx-12
1vote
1answer

Error 0x887A0001 from SharpDX ResizeBuffers on Resize event

I tried to make this sample resizable. I added only this event handler on Resize, but I get error 0x887A0001. What can I do? static void form_Resize(object sender, EventArgs e) { backBuffer.Dispose(); renderView.Dispose(); device.Dispose(); swapChain.ResizeBuffers(1, form.ClientSize.Width, form.ClientSize.Height, Format.Unknown, SwapChainFlags.AllowModeSwitch); } read more
c#
resize
direct2d
sharpdx
1vote
1answer

Monogame crashes after ToggleFullScreen back to window

With Monogame I'm able to switch to fullscreen mode using ToggleFullScreen without any problems, but when I try to switch back to windowed mode I get this: > SharpDX.SharpDXException was unhandled HResult=-2005270527 > Message=HRESULT: [0x887A0001], Module: [SharpDX.DXGI], ApiCode: > [DXGI_ERROR_INVALID_CALL/InvalidCall], Message: The application made a call > that is invalid. [...] read more
c#
xna
monogame
sharpdx
1vote
1answer

C++ unmanaged code inside winform

First: I am using C# and C++ on windows 7. I have created a basic rendering engine in c++ with directx 10. It works good as a stand alone application. But, when I sending the Form.Handle of a WinForm I want to render inside to the engine it crashes during [...] read more
c#
c++
winforms
directx
0votes
2answers

DXGI_ERROR_INVALID_CALL when creating swap chain for core window

I'm learning DX11 by following this tutorial on DirectXTutorials.com. I'm at the point where I have created the device and it's context and now need to create the swap chain. However, when I call CreateSwapChainForCoreWindow(...), it leaves the swap chain as a nullptr and returns 0x887a0001. DirectX Error Lookup spits [...] read more
c++
directx
directx-11
0votes
1answer

Show 3D molecule model within a given grid in UWP

I have a POSCAR file containing atom positions (x,y,z) for a molecule. I am using this app to edit this POSCAR file. Now I want to display a model of the molecule to select a atom and changing parameters or deleting the selected atom. Now is my question: what is [...] read more
3d
uwp
direct3d
direct2d
3d-modelling
0votes
1answer

SharpDX.DXGI - DXGI_ERROR_INVALID_CALL

I've searched for the solution a lot, but i can't find it. Here is my code: namespace MySharpDXGame { public class Game { public static void Main() { Game game = new Game(); game.InitializeGraphics(); RenderLoop.Run(game.MainForm, game.RenderCallback); } private RenderForm MainForm; private const int Width = 1280; private const int Height [...] read more
exception
directx-11
sharpdx
0votes
2answers

SharpDXException at SharpDX.dll in 3.0.0

I'm using Windows 7 Ultimate 64 bit with Visual Studio 2012 Ultimate and my GPU supports DirectX11. I was using SharpDX for a long time in 2.6.3 version. When I'm updating to any newer version my code and any code from examples is throwing SharpDXException: "Additional information: HRESULT: [0x887A0001], Module: [...] read more
c#
directx
sharpdx
0votes
1answer

SharpDX 2D Window Resize

i want render resize CODE mSwapChainDesc = new dx.SwapChainDescription() { BufferCount = 1, IsWindowed = true, OutputHandle = Target.Handle, SwapEffect = dx.SwapEffect.Discard, Usage = dx.Usage.RenderTargetOutput | dx.Usage.ShaderInput, Flags = dx.SwapChainFlags.None, ModeDescription = new dx.ModeDescription(Target.ClientSize.Width, Target.ClientSize.Height, dx.Rational.Empty, dx.Format.B8G8R8A8_UNorm), SampleDescription = new dx.SampleDescription(1, 0) }; d3.Device.CreateWithSwapChain(d3d.DriverType.Hardware, d3.DeviceCreationFlags.BgraSupport, mSwapChainDesc, out mD3Device, out mSwapChain); [...] read more
c#
sharpdx
0votes
1answer

How to CreateSwapChainForHwnd

In the following code, where device is an instance of ComPtr<ID3D12Device> that was successfully initialized with D3D12CreateDevice, I am getting an failing HRESULT. I get the value 0x887a0001. I would appreciate any ideas as to what I am doing wrong. DXGI_SWAP_CHAIN_DESC1 swapChainDesc = {}; swapChainDesc.Width = 0; swapChainDesc.Height = 0; [...] read more
directx
directx-11
directx-12
0votes
1answer

C# SharpDX - from Control to Fullscreen DXGI_ERROR_INVALID_CALL

I have a problem with switching from render to a windows form control to render to fullscreen. so I ripped the problem to a small example project that only includes the swapchain and device initialization and the fullscreen switch. using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Windows.Forms; using [...] read more
c#
.net
directx
sharpdx

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