c runtime error message -


This error was shown when creating a file using fopen in C programming language

NTVDM CPU encountered an invalid instruction CS: 0000 IP0075 OP: f0 00 f0 37 05 Close 'choos' to finish the operation.

This type of thing usually occurs when a program tries to execute data as a code. In return, this usually happens when someone stops the stack and writes the address of the return.

In this case, I would think that "IP0075" is an indicator indicator, and it has been concluded that invalid instructions are 0x0075. My condition is that this address has not been mapped to the app executable code. UPDATE over possible connection with POP: OP states that removing the code causes the problem to be solved. Unfortunately, this does not prove that fopen is the cause of the problem. For example:

  • The deleted code may contain extra local variables, which means that stack trammling is killing the return address in a case ... and In the second case, some words are not being used.

  • The deleted code can be due to the change in the size of the code segment, from which some important address can point to any other point.

The problem is almost certain that your application has "undefined behavior" according to the C standard. Anything can happen, and the likelihood is that it will not make any sense.

Debugging this kind of problem can be really hard, you may start to "run" or "run" or all warnings equivalent to your code. After this, you should try to figure out where it's going to the bad code / address. Then work back to find out what happened due to it.


Comments

Popular posts from this blog

MVP, design question -

excel - Populate list via a bi-Condition -

iphone - How do I make a UIPickerView in a UIActionSheet -