![Dxgi error not currently available](https://cdn-ak.f.st-hatena.com/images/fotolife/g/greathigh-power/20200126/20200126194113.jpg)
Its strange that its not a null pointer exception I'm a little interested to see what the "assembly level error" you're getting is, it might give us more juicy info. I don't know how the SetFullScreenState acts internally, so I can't speculate too much on what else might be causing the issue. If that is the case, just calling SwapChain->SetFullScreenState() is undefined behaviour, which might or might not cause a memory access violation error. Probably the swap chain itself, if it has been freed already.
![dxgi error not currently available dxgi error not currently available](https://www.lifewire.com/thmb/FI9ZhLbp6ezSHj38MaSmvbOFQfs=/804x300/filters:no_upscale():max_bytes(150000):strip_icc()/dxgi-dll-error-message-5abe52afa474be0036c6bba4.png)
Another one is 0x80070005 (same error as shown in the pic above, the little number at the bottom), meaning "E_ACCESSDENIED", or "General access denied error". The first of these is "S_OK" for a successful run. To find what these other codes may be, here's a list of common HRESULT values. In that page it says that possible returned error values values may be "DXGI_ERROR_NOT_CURRENTLY_AVAILABLE" (0x887A0022, seen in the DXGI_ERROR, "DXGI_STATUS_MODE_CHANGE_IN_PROGRESS" (0x087A0008, seen in the DXGI_STATUS documentation), "S_OK" (0x00000000, more on this later) or "Other error codes if you run out of memory or encounter another unexpected fault".
![dxgi error not currently available dxgi error not currently available](https://www.customerparadigm.com/images/Magento/Magento-2.0/Maintenance-Mode-Magento-2.0-Custom-Page/Magento-2.0-Maintenance-Mode-Message.jpg)
That method returns a result value called HRESULT. I've looked into this a little and given what information we have I think there's a chance you might be right:ĭocumentation for the IDXGISwapChain::SetFullscreenState method, which appears to be the cause of the error.
![Dxgi error not currently available](https://cdn-ak.f.st-hatena.com/images/fotolife/g/greathigh-power/20200126/20200126194113.jpg)