Hi everyone,
I would like to know if something similar happen to you. Well the issue is that when I declare a variable as a global one in the header file of a module with extern sometimes it loses its value. And if I declare it as static I can not access to it from other module. As far As I understand, a static variable is the same during the all of the execution of the program and it has a space of memory reserved to it. Can anyone please clarify this?
Thanks in advance.
Thread dating back 5 to 6 years.
Need to look at how you are using the variables across modules, and how other things are corrupting the data. Perhaps add watch points, or monitor the memory space so you can alert as soon as it happens and instrument your code flow to focus on the responsible portions.
Check stack depth and usage.