There is a general error that occurs when executing Visual C Runtime:
This application asked Runtime to terminate it in an unusual way.
For more information, contact support.
What does this error message mean?
Let me use the parable to explain what I ask.
If I see a message:
Exception: Access Violation (0xc0000005), Address 0x702be865
This access violation has nothing to do with sexual harassment or with someone trying to get into my computer (no more than General Failure was a brigadier general who tried to read my C drive, or that you could be sent to jail for execution illegal operation in Windows 95).
In this case, the access violation corresponds to the constant EXCEPTION_ACCESS_VIOLATION (declared in winbase.h with the value 0xC0000005). This constant is one possible exception error code that can be returned in the EXCEPTION_RECORD structure. The code ACCESS_VIOLATION means that the program tried to read or write to an address in memory, which should not be. If you try to read from a memory address that has never been allocated, it means that you are doing something terribly bad - and this explains the exception.
This is usually caused by the fact that the program has a pointer to a memory that is not or is no longer valid. The solution stops trying to access memory that is not valid.
Note : I do not ask:
- Why is program x getting error C0000005?
- Why is my code getting an access violation?
- How can I debug access violation?
So, if I asked you what causes an access violation , you would not tell me to check the stack trace or look at the output window or publish a code sample. You would say, "This is from accessing memory that is not valid."
Back to my question. What the following error means:
This application requested the execution of Runtime in an unusual way.
I'm (honestly) sure that the Microsoft Visual C Runtime library does not have a function:
void TerminateRuntime(bool UnusualWay);
Therefore, I should try to figure out what this actually means:
- What does it mean to complete the C visual runtime library? (msvcrt is a dll, you don't finish it, you just don't use it anymore).
- What would be the usual way to abort MSVCRT?
- Anyone choose to terminate it in an unusual way?
- Today, an unusual way is a really outdated view of what used to be the usual way?
- If I (by mistake) stopped this in an unusual way, what would I do to end it in the usual way?
In other words: what error is the MSVCRT capture and hiding behind the error message?
language-agnostic windows msvcrt
Ian Boyd Nov 18 2018-11-11T00: 00Z
source share