sanketgajane
Programmer
Hi
I am seeing an unusual memory corruption.
The following is the type of program I am using. The function shown below is part of large code, and not all details of it are given.
The value 'val' which is passed to func1() gets corrupted after the call to func3(), hence it cannot be used in the function further.
Also if I add a print between func2() and func3() I don't see the memory corruption. It looked like stack corruption or memory overwrite error. I have already verify the stack and it was not of much help.
Can anyone point anything related to the root cause?
void func1(ubyte val)
{
ubyte var1;
ubyte var2;
func2(val);
func3(val);
......
......
}
Thanks
Sanket.
I am seeing an unusual memory corruption.
The following is the type of program I am using. The function shown below is part of large code, and not all details of it are given.
The value 'val' which is passed to func1() gets corrupted after the call to func3(), hence it cannot be used in the function further.
Also if I add a print between func2() and func3() I don't see the memory corruption. It looked like stack corruption or memory overwrite error. I have already verify the stack and it was not of much help.
Can anyone point anything related to the root cause?
void func1(ubyte val)
{
ubyte var1;
ubyte var2;
func2(val);
func3(val);
......
......
}
Thanks
Sanket.