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

Removing Code will adjust whole program

When I remove a little piece of code, what has no issue with the working of my program, the program doesn't work at all.

Also
I've got 2 function that aren't used at all, but when I remove them, my program won't work to.

With not working I mean: it will compile and the program also starts but some program parts don't work.

I've got
ADuC842
uVision 3.30a

I first thought it would be that I used up
to much memory, but after removing unused
code it also (doesn't) work(s).
I have no idea where to look to solve this
problem, if you have any ideas I'm happy to
hear them.

Parents
  • Please provide more information. Any attempt to figure out what is causing your problem from the marginal information in your posting can safely be labeled as pure guesswork.

    When I remove a little piece of code,

    ... and how is anyone else supposed to know what this "little piece of code" is ? In any of my programs, I can pick a line of code that, when removed, will screw up the program completely.

    the program doesn't work at all.

    This lacks any useful information. What are the symptoms of "the program doesn't work at all." ?

    I've got 2 function that aren't used at all,

    Great. We haven't got those 2 functions and no clue whatsoever what code they contain.

    it will compile

    What about error messages or warnings ?

    the program also starts but some program parts don't work.

    This also lacks any information useful for diagnosis of the problem.

    if you have any ideas

    I could give you roughly 500 wild guesses, but I believe they would not get you any closer to a solution.

    So. Please provide more information.

Reply
  • Please provide more information. Any attempt to figure out what is causing your problem from the marginal information in your posting can safely be labeled as pure guesswork.

    When I remove a little piece of code,

    ... and how is anyone else supposed to know what this "little piece of code" is ? In any of my programs, I can pick a line of code that, when removed, will screw up the program completely.

    the program doesn't work at all.

    This lacks any useful information. What are the symptoms of "the program doesn't work at all." ?

    I've got 2 function that aren't used at all,

    Great. We haven't got those 2 functions and no clue whatsoever what code they contain.

    it will compile

    What about error messages or warnings ?

    the program also starts but some program parts don't work.

    This also lacks any information useful for diagnosis of the problem.

    if you have any ideas

    I could give you roughly 500 wild guesses, but I believe they would not get you any closer to a solution.

    So. Please provide more information.

Children