BUG: Divide by Zero Hangs on SE/30 If Compiled w/ 68881 Option (65941)



The information in this article applies to:

  • Microsoft QuickBASIC Compiler for the Apple Macintosh 1.0
  • Microsoft QuickBASIC Compiler for the Apple Macintosh 1.0a

This article was previously published under Q65941

SYMPTOMS

Dividing by zero in a Macintosh QuickBasic (b) (binary math version) program compiled with the "Generate 68881 Code" 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 "Generate 68881 Code" 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 "before"
   WHILE INKEY$ = "" : WEND
   X = 0
   PRINT 1/X
   PRINT "after"
   WHILE INKEY$ = "" : WEND
				

Modification Type:MajorLast Reviewed:10/20/2003
Keywords:kbbug KB65941