LINE (0,0)-(12231,12230) Causes Line Coordinates to Overflow (27406)






This article was previously published under Q27406

SYMPTOMS

A LINE graphics statement gives an Overflow Error with certain large (but valid) values for coordinates. The first two LINE statements of the example below work correctly; the third LINE statement gives the overflow error.

This problem occurs both in the QB.EXE editor environment and as an .EXE file.

STATUS

Microsoft has confirmed this to be a bug in QuickBasic Versions 4.00, 4.00b, and 4.50, and in Microsoft Basic Compiler Versions 6.00 and 6.00b for MS-DOS and OS/2 (buglist6.00, buglist6.00b). This problem was corrected in Microsoft Basic Professional Development System (PDS) Version 7.00 for MS-DOS and OS/2 (fixlist7.00).

The code example is as follows:
   screen 2
   line (0,0)-(12230, 12230)
   line (0,0)-(12231, 12231)
   line (0,0)-(12231, 12230)
				

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