Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Post History
C++ doesn't have error codes/exit codes other than return 0; / EXIT_SUCCESS / EXIT_FAILURE. The code you are getting is from the OS when your program crashes from a run-time error. -1073740940 is ...
Answer
#1: Initial revision
C++ doesn't have error codes/exit codes other than `return 0;` / `EXIT_SUCCESS` / `EXIT_FAILURE`. The code you are getting is from the OS when your program crashes from a run-time error. `-1073740940` is unhelpful gibberish, you need to convert this from 2's complement 32 bit into hex. **Then you get `C0000374` which is Windows' exception code for heap corruption.** Meaning you have some pointer or array related bug in your program. Manual management of `new`/`delete` gone wrong would be the first thing to look for.