Microsoft KB Archive/65941

= BUG: Divide by Zero Hangs on SE/30 If Compiled w/ 68881 Option =

Article ID: 65941

Article Last Modified on 10/20/2003

-

APPLIES TO


 * Microsoft QuickBasic Compiler for Macintosh 1.0
 * Microsoft QuickBasic Compiler for Macintosh 1.0

-



This article was previously published under Q65941



SYMPTOMS
Dividing by zero in a Macintosh QuickBasic (b) (binary math version) program compiled with the &quot;Generate 68881 Code&quot; option can cause a Macintosh SE/30 (with a 68881 installed) to hang. The problem does not occur on a Macintosh II computer with a 68881 installed.

Microsoft has confirmed this problem in Microsoft QuickBasic versions 1.00 and 1.00a for the Macintosh Systems. We are researching this problem and will post new information here as it becomes available.



MORE INFORMATION
This information does not apply to QuickBasic interpreted programs, which cannot take advantage of the 68881 math coprocessor. This information also does not apply to programs compiled in the decimal math version, Microsoft QuickBasic (d).

The following program, when compiled with the &quot;Generate 68881 Code&quot; option (from the Options command in the Run menu) causes the computer to hang after a key is pressed. This was tested on a Macintosh SE/30. A Macintosh II did not hang; instead, error 11 was correctly generated.

Sample Code
PRINT &quot;before&quot; WHILE INKEY$ = &quot;&quot; : WEND X = 0 PRINT 1/X PRINT &quot;after&quot; WHILE INKEY$ = &quot;&quot; : WEND

Additional query words: MQuickB

Keywords: kbbug KB65941

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.