BC.EXE 4.50 "Internal Error Near 361F" Passing Integers to SUB (45688)






This article was previously published under Q45688

SYMPTOMS

A compiler error message, "Internal error near 361F," occurs when the code below is compiled with the BC.EXE that comes with QuickBasic version 4.50.

This problem does NOT occur in the QuickBasic 4.50 environment, in QuickBasic Compiler versions 4.00 or 4.00b, in Basic Compiler versions 6.00 or 6.00b, or in Basic Professional Development System (PDS) version 7.00.

The code example below will cause an "Internal error near 361F" with BC.EXE in QuickBasic 4.50. The problem seems to stem from the complicated integer computation.

To work around this problem, use a temporary variable for part of the calculation.

STATUS

Microsoft has confirmed this to be a bug in QuickBasic version 4.50. Microsoft is researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

The following is a code example:
SUB test (i0%, i1%, i2%, i3%)       '4 integer parameters necessary
'Work-around: use temporary variable:
' temp% = i3% \ i2%
' i1% = i1% + temp% + 1
i1% = i1% + i3% \ i2% + 1           'remove any operation fixes
i3% = 1                             'this line is necessary
END SUB
				

Modification Type: Minor Last Reviewed: 1/9/2003
Keywords: KB45688