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

Last reviewed: January 22, 1998
Article ID: Q156919
The information in this article applies to:
  • Microsoft Visual J++ 1.0, 1.1

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. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

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;
   }
}

REFERENCES

For the latest Knowledge Base articles and other support information on Visual J++ and the SDK for Java, see the following page on the Microsoft Technical Support site:

   http://support.microsoft.com/support/visualj/
   http://support.microsoft.com/support/java/

Keywords          : kbtool VJDebug
Technology        : kbInetDev
Version           : 1.0 1.1
Platform          : WINDOWS
Issue type        : kbbug


================================================================================


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: January 22, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.