KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q64022: Watch Value Can Display Incorrect Value of Far Memory

Article: Q64022
Product(s): See article
Version(s): 2.50
Operating System(s): MS-DOS
Keyword(s): ENDUSER | s_quickasm | mspl13_c
Last Modified: 25-JUL-1990

If the sample code is compiled with debug information, a watch window
set on the "fptr" pointer will display incorrect values.

Sample Code
-----------

#include <stdio.h>
unsigned char far * fptr;
void main()
{
     int c;
     fptr=(unsigned char far *)0xd0000600;
     for (c=0; c < 50; c++)
          printf("%d\n", fptr[c]);
}

When fptr[c] is displayed as a watch value entry, it will show values
that are different than the output screen. QuickC 2.00 and CodeView
show the same watch value as the output screen.

Microsoft is researching this problem and will post new information
here as it becomes available.

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.

Copyright Microsoft Corporation 1986-2002.