KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q58039: "Internal Error" Using Two-Dimensional Single-Precision Array

Article: Q58039
Product(s): See article
Version(s): 7.00   | 7.00
Operating System(s): MS-DOS | OS/2
Keyword(s): ENDUSER | buglist7.00 fixlist7.10 | mspl13_basic
Last Modified: 21-SEP-1990

The code example below generates the error message "Internal Error
near 8C54" when compiled using the BC.EXE shipped with Microsoft BASIC
Professional Development System (PDS) version 7.00 for MS-DOS and MS
OS/2. This problem does not occur in the QBX.EXE environment or in
earlier compiler versions.

Microsoft has confirmed this to be a problem in Microsoft BASIC PDS
version 7.00. This problem was corrected in BASIC PDS version 7.10.

Code Example
------------

  DIM a (4, 4), b(4, 4)
  k% = i% + 1
  a(0, j%) = a(0, k%)
  b(0, j%) = b(0, k%)

To work around this problem in 7.00, compile using the BC /D (Debug)
option, or change the arrays to integer arrays or double-precision
arrays. To cause the error, the array must be single precision,
two-dimensional, and referenced with integer variables as shown.

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.