|Boolean Variables Memory Corruption
|Page 1 of 1|
|Author:||FTC_359 [ Thu Jan 15, 2015 9:42 pm ]|
|Post subject:||Boolean Variables Memory Corruption|
I came across this bug while using my menu from my autonomous header. This menu takes various variables and then stores them into void pointers. While this menu is still buggy, the point is that it causes the NXT to freeze.
This program would cause the NXT to freeze upon getting to the point where it tries to access the value of the boolean via (bool *).
The following program does work:
In this program, I put in "filler" boolean variables and then kept the same code within the main task. This did work, and further testing led me to believe that every other boolean variable's memory address is corrupted. This did not happen with any other variable type.
To recreate this problem, all you must do is make a simple test program like the ones above and include the autonomous function.
|Page 1 of 1||All times are UTC - 5 hours [ DST ]|
|Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group