This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Function Calls being ignore

Hi, What would be the reasons for a program ignoring some functions that are supposed to be called. They are defined and they are called several times in the program, but there is one specific section skipping them.
Why?
Thank you

Parents
  • Please be more specific --- it's necessary so we can know what's really happening here.

    The core question you should answer is: what did it take for you to find out the function wasn't called? Was some supposed output / state change not done, or did you have to look at the machine code to see it wasn't called?

    If the former, that'd be a bug in your code (it doesn't do what you think it does) or in the compiler (it optimizes away what it's not allowed to).

    If the latter, that's nothing you should worry about --- you just saw the optimizer at work.

Reply
  • Please be more specific --- it's necessary so we can know what's really happening here.

    The core question you should answer is: what did it take for you to find out the function wasn't called? Was some supposed output / state change not done, or did you have to look at the machine code to see it wasn't called?

    If the former, that'd be a bug in your code (it doesn't do what you think it does) or in the compiler (it optimizes away what it's not allowed to).

    If the latter, that's nothing you should worry about --- you just saw the optimizer at work.

Children