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



The information in this article applies to:

  • Microsoft Visual J++ 1.0
  • Microsoft Visual J++ 1.1

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.

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:

Modification Type:MinorLast Reviewed:8/25/2005
Keywords:kbBug kbDebug kbide KB156919 kbAudDeveloper