7 ms·
I don't know how executables work on Windows but I'm guessing that the shell expects a different kind of 'success' response?
by thunderbong 5y ago
I don't know how executables work on Windows but I'm guessing that the shell expects a different kind of 'success' response?
- unnouinceput 5y agoThe thing is that the executable is not ran at all. You get the error coming from OS directly before, not after it fake-ish exited like explained in article for Linux/MacOS. I think this was neatly explained by Ray in one of his older entries. The OS tries to load the .exe's header, then assign heap+stack according to that header, and only then will start the execution at entry point pointed by the header. So, empty file -> no header -> OS complains -> no execution + above error.