home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / t / tp6bugs6.zip / TP6BUGS6.LST < prev    next >
File List  |  1992-05-03  |  11KB  |  309 lines

  1. TP6BUGS6.LST - Version 6 of TP 6.0 bug list
  2.  
  3. This is a completely *un*official list of bugs in TP 6.0.  There have
  4. been (at least) two releases both numbered 6.00:  the original one in
  5. October 1990, and another in June 1991.  You can identify the later
  6. release by the date or by the file size:  TURBO.EXE is 325982 bytes in
  7. the later release.  Several bugs were fixed in the second release; some
  8. of those are marked below.  I've also heard of a 6.01 release dated July
  9. 1991, but haven't tested any of these bugs against it.
  10.  
  11. The list is very abbreviated;  if any of the items are too obscure, ask
  12. and I'll expand on them.  One abbreviation I've been asked about:
  13. "BASM" is the built-in assembler used in asm blocks.
  14.  
  15. Juergen Schlegelmilch sent me a very detailed list of bugs & fixes in TP
  16. 6.0 & Turbovision; the file version (TP6BUGSn.ZIP) of this list contains
  17. all of his comments.  It also contains a few patches and fixes that I've
  18. collected.  The file version will be available on Fidonet on the PDN
  19. Pascal file echo area, and on Internet from garbo.uwasa.fi.  It is also
  20. available on the PC Techniques section of CLMFORUM on Compuserve in DL
  21. 16, as TPBUGS.ZIP.
  22.  
  23. Many other people have sent me their bug lists; thanks to all of them.
  24. In particular, some recent additions are from Arno Haket, Hans
  25. Schleichert, Norbert Juffa, and Jud McCranie.  I know I've missed a few
  26. recent contributors; sorry!
  27.  
  28. I'd appreciate it if anyone sent me their own bug list; I'll publicize
  29. it on Usenet, Fidonet and Compuserve. I'd also appreciate hearing about
  30. patches.
  31.  
  32. Duncan Murdoch
  33.  
  34.  dmurdoch@watstat.waterloo.edu   (Internet address)
  35.  71631,122 (Compuserve)
  36.  DJ Murdoch at 1:221/177.40.
  37.  
  38.  
  39. April 17, 1992:
  40.  
  41. If the Objects unit is overlaid, calls to stream or collection Error
  42. methods can cause system crashes.
  43.  
  44. The Drivers unit misses keystrokes if the keyboard buffer has been
  45. reallocated.
  46.  
  47. Extensions to the Drivers unit INT09 (keyboard interrupt) handler won't
  48. work when run within the IDE, because the interrupt handler won't be
  49. installed.
  50.  
  51. A window that has neither the wfGrow now wfMove flags set does not
  52. disable the cmResize command when it is active.  (A fix is available:
  53. see TWindow.fix in TP6BUGSn.ZIP).
  54.  
  55. April 13, 1992:
  56.  
  57. The compiler doesn't detect overlapping case constants.  Only the first
  58. matching case is executed.
  59.  
  60. The Delay() routine in CRT gives inaccurate delays on some very fast
  61. machines. A patch (DELAY.FIX) from Borland is included in TP6BUGSn.ZIP.
  62.  
  63. The SetViewPort procedure accepts X1=X2 or Y1=Y2 (contrary to the
  64. documentation), but clipping doesn't work properly with these settings.
  65.  
  66. TopText, CentreText, and BottomText are defined differently for
  67. DefaultFont and stroked fonts.
  68.  
  69. Single and Double types typed constants are not correctly initialized
  70. for absolute values smaller than 1.17xxxxE-38 respectively 2.22xxxxE-308
  71. (their value wil be zero instead).  The lower limit of the dynamic range
  72. should be 1.5E-45 and 5.0E-324 respectively.
  73.  
  74. App.ISqr enters an endless loop for arguments greater than 32760.
  75.  
  76. Graph.SetTextJustify doesn't properly account for descenders; they can
  77. be clipped at the bottom of the screen.
  78.  
  79. BASM has the ranges of legal values incorrect for IN, OUT, INT, ENTER,
  80. AAM, AAD instructions.
  81.  
  82. BASM allows references to nonexistent registers on the coprocessor, e.g.
  83. FADD ST, ST(123456)
  84.  
  85. The IDE doesn't properly single step across AAM xx and AAD xx
  86. instructions.
  87.  
  88. BASM doesn't do proper checking on CALLs and JMPs to near/far procedures
  89. or absolute variables, and sometimes doesn't generate proper code, e.g.
  90.  JMP FAR PTR AbsoluteVariable    { AbsoluteVariable is declared absolutely }
  91.  CALL FAR PTR AbsoluteVariable
  92.  
  93. BASM doesn't flag the statements
  94.   MOV AX, [WORD]
  95.   MOV BYTE PTR AL,5
  96. as nonsense.
  97.  
  98. The coprocessor emulator doesn't handle special arguments like INF and
  99. NaN properly.  Quiet NaNs are treated as signalling NaNs, and operations
  100. on INF return NaN.
  101.  
  102. The Random function will return 1.0 once every 2^32 calls in $N+ mode.
  103. This value should be folded to 0.0, so that Trunc(N*Random) can't return
  104. N.
  105.  
  106. TRect.Union and TRect.Intersect don't perform set operations.  If two
  107. rectangles don't intersect, TRect.Intersect always returns
  108. ((0,0),(0,0)); the union of that empty rectangle with any other
  109. rectangle always includes the point (0,0).
  110.  
  111. The Str procedure rounds nnn.5 differently than either the Round or
  112. Trunc functions when printing reals with no decimal places.  In $N-
  113. mode, it is inconsistent; in $N+ mode, it consistently rounds up.
  114.  
  115. Feb 2, 1992:
  116.  
  117. The Drivers.MoveBuf procedure puts junk into the buffer when Attr is 0.
  118. (A fix is available; see MOVEBUF.FIX in TP6BUGSn.ZIP.)
  119.  
  120. The Random(N) function doesn't produce a uniform distribution unless N
  121. is a power of 2, especially for large values of N. Not fixed.
  122.  
  123. The Val procedure can't convert the smallest longint value, -2147483648,
  124. nor can is it handled properly by Read/Readln.  All routines work
  125. properly on the hex equivalent, $80000000.  Not fixed.
  126.  
  127. The base type for a pointer type definition can't be a qualified
  128. identifier. Not fixed.
  129.  
  130. The following TV bugs are more fully described (and fixes are given!) in
  131. the file TVBUGS in TP6BUGSn.ZIP:
  132.  
  133. TFileEditor.NewBuffer allocates 0 bytes, but does not set BufSize
  134. to 0.
  135.  
  136. If the search string given to Editors.IScan nearly matches the last
  137. chars in the text, the routine runs over the end of the text, eventually
  138. replacing text.
  139.  
  140. TMemo cannot coexist in a TDialog with other objects having scrollbars,
  141. because TEditor.HandleEvent consumes all cmScrollBarChanged events.
  142.  
  143. TEditor.InsertBuffer does not reset the block marker.  If a call to it
  144. is followed by a backspace, the block is deleted.
  145.  
  146. If StdDlg.NoWildchars is called with an empty argument, it overwrites
  147. the stack.
  148.  
  149. THelpTopic.AddCrossRef allocates memory and then forgets to use it.
  150.  
  151. THelpIndex.Position returns garbage values if called with a negative
  152. argument.
  153.  
  154. THistory.Draw uses characters 221 and 222 which are not standard outside
  155. codepage 437.
  156.  
  157. December 3, 1991:
  158.  
  159. TP doesn't handle the denormal exception properly on an 8087 or 80287,
  160. so underflow sometimes creates non-zero results.  Not fixed.
  161.  
  162. Compile time evaluation of the ROUND() function is different than
  163. run-time evaluation in $N+ mode on numbers ending in .5.  Not fixed.
  164.  
  165. Arithmetic on the REAL type is sometimes inaccurate in the last few bits
  166. of the result.  Not fixed.
  167.  
  168. The coprocessor emulator doesn't properly emulate the FINCSTP and
  169. FDECSTP instructions in BASM.  (These aren't used by compiled Pascal
  170. code.)  Not fixed.
  171.  
  172. The coprocessor emulator doesn't respect the precision control bits. Not
  173. fixed.
  174.  
  175. The SEG operator in BASM doesn't work on variables declared in the stack
  176. segment. Not fixed.
  177.  
  178. Referencing fields of records in BASM in a WITH block doesn't add the
  179. base address. Not fixed.
  180.  
  181. BASM doesn't generate correct code for instructions like MOV AX,[WORD
  182. PTR BX]. (This is TASM Ideal mode syntax; MASM syntax MOV AX,WORD PTR
  183. [BX] is fine, as is MOV AX,[WORD PTR DS:BX].)  Not fixed.
  184.  
  185. The Graph.TextWidth function returns incorrect results when fonts are
  186. scaled.
  187.  
  188. October 31, 1991:
  189.  
  190. The instruction "IMUL AX, 16" (valid on an 80186+) is rejected by BASM.
  191. The equivalent "IMUL AX, AX, 16" does work (in $G+ mode).  Not fixed.
  192.  
  193. October 26, 1991:
  194.  
  195. If a byte variable X = 0, then (X-1) DIV 8 produces a zero divide error.
  196. Fixed June 91.
  197.  
  198. October 23, 1991:
  199.  
  200. Hitting tab on a help topic with no crossrefs will crash the help
  201. system.  A patch to HELPFILE.PAS is available from Borland.
  202.  
  203. October 17, 1991:
  204.  
  205. The coprocessor emulator does not respect the rounding bits internally
  206. or when storing results to Single or Double variables.
  207.  
  208. October 11, 1991:
  209.  
  210. Segments in external .OBJ files with no class names (e.g. ABSOLUTE
  211. segments) will crash TURBO, TPC or TPCX.  Not fixed.
  212.  
  213. September 16, 1991:
  214.  
  215. The IDE will give incorrect matches when doing word searches on words at
  216. the start of lines (e.g. "Const" matches "onst").  Fixed June 91.
  217.  
  218. The compiler won't allow the optional identifier in a variant record to
  219. be an already defined scalar type identifer. Not fixed.
  220.  
  221. The compiler gives spurious errors if you nest loops very deeply (e.g.
  222. 256 deep).
  223.  
  224.  
  225. August 16, 1991
  226.  
  227. Dangerous bugs:
  228.  
  229. You can use typed constants and variables in constant expressions,
  230. giving garbage values.  Fixed June 91.
  231.  
  232. The coprocessor emulator doesn't check properly for internal stack
  233. overflow; it just wraps around and trashes the top of the stack segment.
  234. Not fixed.
  235.  
  236. Succ(Seg(v)) = Seg(v)  and Pred(Seg(v)) = Seg(v) !  Fixed June 91.
  237.  
  238. TBufStream writes garbage to the stream sometimes.  (A patch for this is
  239. included in TP6BUGSn.ZIP as TBUFSTRE.FIX.).  Not fixed.
  240.  
  241. IN doesn't properly handle out of range values.  (What it does is to
  242. demote out of range scalars to byte, ignoring any high bits.) Not fixed.
  243.  
  244. Referencing fields of records in inline machine code sometimes makes the
  245. compiler go quietly insane.  Not fixed.
  246.  
  247.  Other bugs:
  248.  
  249. Coprocessor errors are often reported at the wrong address, especially
  250. if the error occurs on the first pass through. Not fixed.
  251.  
  252. GetDir returns a root directory for non-existent drives.  (This is
  253. almost as documented.)
  254.  
  255. Horizontal text justification to the right side doesn't work if the
  256. writing direction is vertical; this is only in the DefaultFont.
  257.  
  258. Intr and MsDos don't always work properly in V86 mode under Windows 3,
  259. because they don't use the INT instruction.
  260.  
  261. The TVEdit unit can't input some digits.  (A patch for this is
  262. included in EDITOR.FIX in TP6BUGSn.ZIP.) Fixed in June 91.
  263.  
  264. ^T in TVEdit sometimes deletes more than the next word.  (This is by
  265. design, but inconsistent with the design of the IDE.)
  266.  
  267. ^QF followed by ^L followed by Space deletes words in TVEdit.  (This is
  268. also by design.)
  269.  
  270. TProgram doesn't clean up memory properly on exit.
  271.  
  272. TFileViewer's FileName field is never disposed.
  273.  
  274. The IDE forgets your snow check setting if you jump to DOS and exit
  275. back.
  276.  
  277. Writeln wipes out the status word in the coprocessor. Not fixed.
  278.  
  279. You can allocate an array bigger than 65528 bytes on the heap; it may
  280. wrap around and trash whatever precedes it.  Not fixed.
  281.  
  282. The coprocessor emulator doesn't propagate NaNs the same way as a real
  283. coprocessor does. Not fixed.
  284.  
  285. The string conversion routines sometimes print NaNs as INF.
  286.  
  287. Complicated expressions involving Reals compiled $N+ will unnecessarily
  288. overflow the coprocessor stack (and trigger the dangerous error above).
  289. Not fixed.
  290.  
  291. The $G+ option makes the inline assembler use inline floating point
  292. code, rather than the CD forms that allow emulation. Not fixed.
  293.  
  294. Graph3.Plot leaves a word on the stack; if you call it repeatedly, you
  295. may get a stack overflow; if you call it from a routine that doesn't
  296. have any locals, you're dead.  Fixed in June 91.
  297.  
  298. Some weird problems with F7 Trace; sometimes it just refuses to do it.
  299.  
  300. There are certain illegal Extended encodings that crash the debugger in
  301. TURBO. Not fixed.
  302.  
  303. Range checking shouldn't apply to the limits in a for loop.
  304.  
  305. Method arguments shouldn't be at the same scoping level as method names.
  306.  
  307. The compiler exports private identifiers in .TPU files (though you can't
  308. use them).
  309.