04-03-2008 03:23 PM
04-03-2008 04:34 PM
04-03-2008 04:37 PM - edited 04-03-2008 04:41 PM
04-04-2008 06:47 AM
Thanks for the quick response. I'll certainly try to gather more information if possible in the future. I have actually seen this occur 3 separate times now, so it would seem that something about my project is causing it.
The variable in question is actually global to my entire project and has a valid value at the time it is reported as not being active. In the example code below the "inactive" variable is GlobalVariable (double) with a value of say 30, and NewValue is a local double. If I set a breakpoint on line 120 and 'hover' over NewValue, I get the correct result of 80. However, if I hover over GlobalVariable I get nothing and right-clicking to view variable value gives me the inactive variable error. So the value of GlobalVariable is actually correct and available to the machine's program (since the math works out correctly), but not to the debugger for some reason.
100 NewValue = 50;
110 NewValue = NewValue + GlobalVariable;
120 sprintf(SomeString, "%f", NewValue);