M
Maarten
Hello,
I'm a software engineer for a Dutch company and I am
working on the improvement of a already made program and
I've found a very curious problem. It consists of two
parts, explained below:
When one of my functions is called, the program works as
it is supposed to do, but when I add a line, say for
example:
int i;
i = 10;
or something like that, the progam stops executing the
function before it reaches the end of its code. The more
lines of code I put in the function, the earlier the
function is stopped.
Almost stranger is the fact that when I place the code
above (int i; i = 10
in the code and I use a debugger to
view the process, I can see the value of 'i' change from
i = 835xxxxxx at function start to
i = 12xxxxx somewhere in the function (where 'i' is not
called) to
i = 6 after the line 'i = 10;'
I myself truly haven't got a clue why this should happen.
Anybody who can help?
With kind regards,
Maarten
I'm a software engineer for a Dutch company and I am
working on the improvement of a already made program and
I've found a very curious problem. It consists of two
parts, explained below:
When one of my functions is called, the program works as
it is supposed to do, but when I add a line, say for
example:
int i;
i = 10;
or something like that, the progam stops executing the
function before it reaches the end of its code. The more
lines of code I put in the function, the earlier the
function is stopped.
Almost stranger is the fact that when I place the code
above (int i; i = 10

view the process, I can see the value of 'i' change from
i = 835xxxxxx at function start to
i = 12xxxxx somewhere in the function (where 'i' is not
called) to
i = 6 after the line 'i = 10;'
I myself truly haven't got a clue why this should happen.
Anybody who can help?
With kind regards,
Maarten