Compiled exe runs correctly on USB, not off HDD #6456
Closed
muellerryan
started this conversation in
Build/Link/Run/Fonts issues ONLY!
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Edit before submission, because it may help someone in the future: Formatting the USB drive seemed to have fixed this issue completely. Other modes of file transport (Microsoft Sharepoint) also have no issue running the program.
I found this bizarre problem when attempting to test my project on other computers. When attempting to run the program from another computer, I put (only) the compiled .exe file from the 'release' folder of the VS project folder onto a USB driver. I plug the USB into another computer, run the program off the USB, program works fine. I move the files off the USB and onto the host computer, and when running the program, it no longer works. The console will open but nothing will be printed and it freezes before anything happens, before Windows shuts the program down. It is repeatable among the 3 devices that I tested, but works fine on my computer, where I originally compiled the program, no matter where the actual executable is. I have also tried the same process with several non-imgui programs I've made with no issue at all, so it certainly seems like something imgui-related.
I have replicated it on the latest release of imgui with the example code, so I don't think it's anything I've done with my program, but could very well be an issue with my enviroment setup.
Here are the details of my setup:
Win11, Visual Studio 2022, platform toolset v143, error replicated with VSC++14, 17, and 20. Let's stick with 14 for consistency if testing. There is no difference in results when running the runtime library /MTd or /MT.
imgui info: released version 1.89.5, example_win32_directx11 code, compiled as a release, x64.
Beta Was this translation helpful? Give feedback.
All reactions