-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Return code from the application is not reflected in errorlevel #166
Comments
Can you please clarify what exactly does not work? |
1 similar comment
I can reproduce the problem too - when I run the command, I see the return code is 0. |
I'm not very familiar too. It seems that should give the exit code to quit-message. It work here. if (GoldenImgMode != NativeAppBase::GoldenImageMode::None)
{
g_pTheApp->Update(0, 0);
g_pTheApp->Render();
// Dear imgui windows that don't have initial size are not rendered in the first frame,
// see https://github.com/ocornut/imgui/issues/2949
g_pTheApp->Update(0, 0);
g_pTheApp->Render();
g_pTheApp->Present();
auto ExitCode = g_pTheApp->GetExitCode();
g_pTheApp.reset();
PostQuitMessage(ExitCode);
return ExitCode;
} |
I tried that, but it does not seem to make any difference. |
I don’t know either. Close this issue? |
Let's keep it open - this is really strange behavior. Maybe we will find solution at some point later. |
Can you try these? index 69b6e0c..ef58563 100644
--- a/NativeApp/src/Win32/WinMain.cpp
+++ b/NativeApp/src/Win32/WinMain.cpp
@@ -40,6 +40,10 @@
#include "StringTools.hpp"
#include "Timer.hpp"
+// clang-format off
+#pragma comment( linker, "/subsystem:\"console\" /entry:\"WinMainCRTStartup\"")
+// clang-format on
+
using namespace Diligent;
std::unique_ptr<NativeAppBase> g_pTheApp;``` |
First capture
Then Edit the dump image
Then compare
But it worked when I debug with visual studio
The text was updated successfully, but these errors were encountered: