home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 30 fixes_v / 30-fixes_v.zip / vp_patch.zip / PATCH.TXT < prev    next >
Text File  |  1995-08-05  |  4KB  |  106 lines

  1. Virtual Pascal 1.0 Beta (#003)
  2. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  3. The following fixes are available now:
  4.  
  5. 1) Errors in the following standard procedures/functions
  6. are fixed:
  7.  
  8. Rename, Append, Write(TextFile, Ch), Write(TextFile, Bool)
  9. Read(TextFile, Float), Read/Write(BinFile, AnyVar), BlockRead/BlockWrite,
  10. Include, Exclude and in the operator IN. Close on Text file, assosiated
  11. with a device returns I/O error.
  12.  
  13. 2) It is possible to start the integrated debugger from
  14.    TSHELL, when no Presentation Manager PROTSHELL is installed.
  15.  
  16. 3) The error with {$R+} is fixed.
  17.  
  18. 4) MemAvail and MaxAvail returns more real values now.
  19.  
  20. 5) File TV20.PAS in the directory \VP\SOURCE\TV is not available.
  21.  
  22. 6) The compiler faults while compiling the boolean OR/AND expression
  23.    with constant operands. It occurs only in the case, when
  24.    short circuit evaluation is enabled ({$B-} state).
  25.  
  26. 7) Compiler gives an internal compiler error for floating point
  27.    compare operator.
  28.  
  29. 8) Floating point compare operator causes coprocessor stack
  30.    to overflow.
  31.  
  32. 9) SizeOf(OpenArrayParameter) causes compiler to fault.
  33.  
  34. 10) Initial value of the System.FileMode variable is Read-Only
  35.     instead of Read-Write.
  36.  
  37. 11) There are problems with deeply nested FOR loops.
  38.  
  39. 12) On HPFS drives the IDE creates .BAK files with some
  40.     arbitrary garbage in the name after .BAK.
  41.  
  42. 13) The problems with set compare operators were fixed.
  43. ------------------------------------------------------------
  44. To apply binary patch to VP.EXE and VP32.DLL files, please do
  45. the following:
  46.  
  47. 1) Change to the \VP\BIN directory
  48. 2) Copy file patch.rsp to \VP\BIN
  49. 3) Execute PATCH PATCH.RSP /A
  50. 4) After that you can delete patch.rsp
  51.  
  52. Note: PATCH is supplied with OS/2.
  53. ------------------------------------------------------------
  54. To fix the errors in the SYSTEM unit, please take the following steps:
  55. 1) Change to \VP\UNITS directory
  56. 2) Copy NEWSYS.LIB,FIX.CMD,FIX1.RSP,FIX2.RSP to \VP\UNITS
  57. 3) Execute FIX.CMD
  58. 4) After that you can delete NEWSYS.LIB,FIX.CMD,FIX1.RSP and FIX2.RSP
  59. ------------------------------------------------------------
  60. File TV20.PAS
  61. ----------------
  62. library TVision;
  63.  
  64. uses
  65.   Objects, Drivers, Memory, Views, Menus, Dialogs, StdDlg, MsgBox,
  66.   TextView, Colorsel, App, Validate, Outline, HistList, Editors;
  67.  
  68. {$Dynamic System, Dos, Strings, Xcpt}
  69. {$L VPRTL.LIB}       (* Runtime import library *)
  70. {$Export Objects, Drivers, Memory, Views, Menus, Dialogs, StdDlg, MsgBox }
  71. {$Export TextView, Colorsel, App, Validate, OutLine, HistList, Editors     }
  72.  
  73. begin
  74. end.
  75. ------------------------------------------------------------
  76. Unfortunately, the following errors cannot be fixed by patch
  77. and fixes will come in the next beta version.
  78.  
  79. 1) Pred standard function should be compiled in the {$Q-} state.
  80. 2) Compiler generates invalid code for FOR statement, when
  81.    unsigned control variable is used in the cases when upper
  82.    bound of the control variable is equal to the upper bound
  83.    (for TO, lower for DOWNTO) of the control variable range.
  84.  
  85. For example, this produces infinite loop:
  86. var
  87.   I: Byte;
  88. begin
  89.   for I := 254 to 255 do ;
  90. end.
  91.  
  92. As a workaround, you can use signed integer variables in such cases.
  93.  
  94. 3) {$T+} does not work properly.
  95.  
  96. 4) I am aware of the following bugs in the IDE, please do not
  97.    report them. Fixes will come in the next beta version:
  98.    - File dialog attempts to read CDROM drive, even if there
  99.      is no CD in the drive.
  100.    - Search command in the help is not functioning.
  101.    - NCP window does not work at all (nobody noticed this one!)
  102.    - After block deletion, cursor jumps some lines below the
  103.      current position.
  104.    - Syntax highlighting sometimes gets disabled even if file extension
  105.      is .PAS.
  106.