jcomputer

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: Shadow demo causing exception in Windows 10 #444

    jcomputer
    Participant

    Hi Paul,

    It seems to me the declaration of empty SVR array causes the problem, although I don’t understand why it worked fine before in Windows8 but not the Windows10.(same hardware, a Alienware laptop with NVidia 860m graphics)

    I did a small experiment and change the code as follows:
    void Game::UnbindPixelShaderResources(UINT startSlot,const UINT count)
    {
    for (int i=0;i<count;i++){
    ID3D11ShaderResourceView* const emptySRV[1] = { nullptr};
    mDirect3DDeviceContext->PSSetShaderResources(startSlot+i, 1, emptySRV);
    }
    }
    I do not think it is efficient but the demo work fine without throwing the exception.

    Any thought on this?

    thanks
    Jeff

    in reply to: Shadow demo causing exception in Windows 10 #443

    jcomputer
    Participant

    Hi Paul,

    Thanks very much for coming back to me for this. I didn’t change the code, the call stack is like:
    d3d11_3SDKLayers.dll!0fd22c02() Unknown
    [Frames below may be incorrect and/or missing, no symbols loaded for d3d11_3SDKLayers.dll]
    [External Code]
    > ShadowMappingDemo.exe!Library::Game::UnbindPixelShaderResources(unsigned int startSlot, unsigned int count) Line 228 C++
    ShadowMappingDemo.exe!Rendering::ShadowMappingDemo::Draw(const Library::GameTime & gameTime) Line 252 C++
    ShadowMappingDemo.exe!Library::Game::Draw(const Library::GameTime & gameTime) Line 214 C++
    ShadowMappingDemo.exe!Rendering::RenderingGame::Draw(const Library::GameTime & gameTime) Line 113 C++
    ShadowMappingDemo.exe!Library::Game::Run() Line 158 C++
    ShadowMappingDemo.exe!WinMain(HINSTANCE__ * instance, HINSTANCE__ * previousInstance, char * commandLine, int showCommand) Line 25 C++
    [External Code]

    And the local variable looks like these:

    +&emptySRV 0x015df268 {ShadowMappingDemo.exe!ID3D11ShaderResourceView *emptySRV} {0x00000000 <NULL>} ID3D11ShaderResourceView * *
    count 3 unsigned int
    +emptySRV 0x00000000 <NULL> ID3D11ShaderResourceView *
    +mDirect3DDeviceContext 0x019259e0 <Information not available, no symbols loaded for d3d11_3SDKLayers.dll> ID3D11DeviceContext1 *
    startSlot 0 unsigned int
    +this 0x018fa5f8 {mDirectInput=0x01920ff0 <Information not available, no symbols loaded for dinput8.dll> mKeyboard=…} Library::Game * {Rendering::RenderingGame}

    I don’t see any thing suspicious here (e.g. null object etc..)

    thanks
    Jeff

Viewing 2 posts - 1 through 2 (of 2 total)