Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. DIrectX9 error shows up only in debugger

DIrectX9 error shows up only in debugger

Scheduled Pinned Locked Moved C / C++ / MFC
c++visual-studiohelpannouncementcsharp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    User 9483662
    wrote on last edited by
    #1

    I'm working on a C++ native code graphics application using DirectX9. I use the latest version of Visual Studio Community 2019. When working in the IDE the application crashes from time to time with a message like "Exception thrown at 0x00007FF9762975D6 (nvd3dumx.dll) in NNetSimu.exe: 0xC0000005: Access violation reading location 0x000001B388FE1A3E." So far I could not reproduce the error, it happens once in while. The strange thing is: If I call the application directly, it runs very stable, the problem occurs only in the IDE. The crash happens always during the end of a frame, typically during swapChain->Present. My code:

    void D3D_driver::EndFrame( HWND const hwnd )
    {
    HRESULT hres;
    hres = m_d3d_device->EndScene(); assert(hres == D3D_OK);
    hres = m_d3d_swapChain->Present( nullptr, nullptr, hwnd, nullptr, 0 ); assert(hres == D3D_OK);
    m_id3dx_font->Release();
    }

    I could live with the situation, the app runs smoothly without IDE, but it is annoying during development. Any ideas how I could further investigate the problem?

    L 1 Reply Last reply
    0
    • U User 9483662

      I'm working on a C++ native code graphics application using DirectX9. I use the latest version of Visual Studio Community 2019. When working in the IDE the application crashes from time to time with a message like "Exception thrown at 0x00007FF9762975D6 (nvd3dumx.dll) in NNetSimu.exe: 0xC0000005: Access violation reading location 0x000001B388FE1A3E." So far I could not reproduce the error, it happens once in while. The strange thing is: If I call the application directly, it runs very stable, the problem occurs only in the IDE. The crash happens always during the end of a frame, typically during swapChain->Present. My code:

      void D3D_driver::EndFrame( HWND const hwnd )
      {
      HRESULT hres;
      hres = m_d3d_device->EndScene(); assert(hres == D3D_OK);
      hres = m_d3d_swapChain->Present( nullptr, nullptr, hwnd, nullptr, 0 ); assert(hres == D3D_OK);
      m_id3dx_font->Release();
      }

      I could live with the situation, the app runs smoothly without IDE, but it is annoying during development. Any ideas how I could further investigate the problem?

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Since the problem appears to be within Microsoft's library it would be best to report it to them.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups