pDebug->ReportLiveObjects(DXGI_DEBUG_ALL, DXGI_DEBUG_RLO_SUMMARY) throws exception in DEBUG mode when implementing Image Loading as detailed in https://github.com/ocornut/imgui/wiki/Image-Loading-and-Displaying-Examples#Example-for-DirectX12-users #6204
Replies: 2 comments
-
Your intuition is correct! Exception The break mode of a message is controlled using either Chances are you copy+pasted the You can find the messages written by You will probably find something along the lines of:
The proper fix is to find the object being leaked and make sure it gets cleaned up before your app exits. (If you name your objects using A not-so-proper non-fix is to disable breaking on warnings, but since you're still learning it's probably better to leave them on. (Once you get in the habit of paying attention to the debug output window it's not unreasonable to disable break for the warning severity, but you should definitely always fix those warnings eventually.) As an aside, Direct3D 12 is not very friendly towards beginners. You might consider using Direct3D 11 while you're still learning as the API is much more forgiving. (Just compare the Direct3D 11 texture upload example with the Direct3D 12 one.) (The issue you ran into would've still happened with Direct3D 11, I'm just speaking generally.) |
Beta Was this translation helpful? Give feedback.
-
Thanks a million!! |
Beta Was this translation helpful? Give feedback.
-
Hello,
![image](https://user-images.githubusercontent.com/126497312/221614399-eb58feba-d646-4dca-9ecc-78fdc4505538.png)
I used the link below to load my own images file into a GPU texture for custom ImageButton.
It works like a charm!! Thanks to the author.
https://github.com/ocornut/imgui/wiki/Image-Loading-and-Displaying-Examples#Example-for-DirectX12-users
However, when I run in debug mode (only, release no issues), an exception is thrown when I close the main window (exit my ImGui app):
To solve it temporarily I've commented off pDebug->ReportLiveObjects(DXGI_DEBUG_ALL, DXGI_DEBUG_RLO_SUMMARY);
However, as I'm a complete noob, I'm worried that the excpetion may be important.
Is there anyone who understands where the excpetion comes from and what can be done to solve the issue?
Thanks in advance for any help.
Beta Was this translation helpful? Give feedback.
All reactions