Microsoft KB Archive/156919

= BUG: Cannot Edit min/max Float Values in the Debugger =

Article ID: 156919

Article Last Modified on 5/12/2007

-

APPLIES TO


 * Microsoft Visual J++ 1.0 Standard Edition
 * Microsoft Visual J++ 1.1 Standard Edition

-



This article was previously published under Q156919



SYMPTOMS
When you change the value of a double or float variable in the Visual J++ debugger Watch window to a number beyond the data types absolute maximum or minimum value (or to NaN), the debugger puts 1.#INF0000000 (float variables) or 1.#IND00000 (double variables) in the Watch window edit control, which you can then no longer edit.



STATUS
Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article.



Steps to Reproduce Behavior
The following code sample demonstrates the problem. When this code is compiled and run under the Visual J++ debugger, the variables dNaN, dInfinity, fNan, and fInfinity are read-only when viewed in the Watch window. You can view and change the values of dtest and ftest as expected: public class test {  public static void main(String args[]) {     double dNaN, dInfinity, dtest; dNaN = 0.0/0.0; dInfinity = 1e308*10; dtest=10;

float fNaN, fInfinity, ftest; fNaN = 0.0f/0.0f; fInfinity = 1e38f * 10; ftest=10; }

}

