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 >
Wrap
Text File
|
1995-08-05
|
4KB
|
106 lines
Virtual Pascal 1.0 Beta (#003)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The following fixes are available now:
1) Errors in the following standard procedures/functions
are fixed:
Rename, Append, Write(TextFile, Ch), Write(TextFile, Bool)
Read(TextFile, Float), Read/Write(BinFile, AnyVar), BlockRead/BlockWrite,
Include, Exclude and in the operator IN. Close on Text file, assosiated
with a device returns I/O error.
2) It is possible to start the integrated debugger from
TSHELL, when no Presentation Manager PROTSHELL is installed.
3) The error with {$R+} is fixed.
4) MemAvail and MaxAvail returns more real values now.
5) File TV20.PAS in the directory \VP\SOURCE\TV is not available.
6) The compiler faults while compiling the boolean OR/AND expression
with constant operands. It occurs only in the case, when
short circuit evaluation is enabled ({$B-} state).
7) Compiler gives an internal compiler error for floating point
compare operator.
8) Floating point compare operator causes coprocessor stack
to overflow.
9) SizeOf(OpenArrayParameter) causes compiler to fault.
10) Initial value of the System.FileMode variable is Read-Only
instead of Read-Write.
11) There are problems with deeply nested FOR loops.
12) On HPFS drives the IDE creates .BAK files with some
arbitrary garbage in the name after .BAK.
13) The problems with set compare operators were fixed.
------------------------------------------------------------
To apply binary patch to VP.EXE and VP32.DLL files, please do
the following:
1) Change to the \VP\BIN directory
2) Copy file patch.rsp to \VP\BIN
3) Execute PATCH PATCH.RSP /A
4) After that you can delete patch.rsp
Note: PATCH is supplied with OS/2.
------------------------------------------------------------
To fix the errors in the SYSTEM unit, please take the following steps:
1) Change to \VP\UNITS directory
2) Copy NEWSYS.LIB,FIX.CMD,FIX1.RSP,FIX2.RSP to \VP\UNITS
3) Execute FIX.CMD
4) After that you can delete NEWSYS.LIB,FIX.CMD,FIX1.RSP and FIX2.RSP
------------------------------------------------------------
File TV20.PAS
----------------
library TVision;
uses
Objects, Drivers, Memory, Views, Menus, Dialogs, StdDlg, MsgBox,
TextView, Colorsel, App, Validate, Outline, HistList, Editors;
{$Dynamic System, Dos, Strings, Xcpt}
{$L VPRTL.LIB} (* Runtime import library *)
{$Export Objects, Drivers, Memory, Views, Menus, Dialogs, StdDlg, MsgBox }
{$Export TextView, Colorsel, App, Validate, OutLine, HistList, Editors }
begin
end.
------------------------------------------------------------
Unfortunately, the following errors cannot be fixed by patch
and fixes will come in the next beta version.
1) Pred standard function should be compiled in the {$Q-} state.
2) Compiler generates invalid code for FOR statement, when
unsigned control variable is used in the cases when upper
bound of the control variable is equal to the upper bound
(for TO, lower for DOWNTO) of the control variable range.
For example, this produces infinite loop:
var
I: Byte;
begin
for I := 254 to 255 do ;
end.
As a workaround, you can use signed integer variables in such cases.
3) {$T+} does not work properly.
4) I am aware of the following bugs in the IDE, please do not
report them. Fixes will come in the next beta version:
- File dialog attempts to read CDROM drive, even if there
is no CD in the drive.
- Search command in the help is not functioning.
- NCP window does not work at all (nobody noticed this one!)
- After block deletion, cursor jumps some lines below the
current position.
- Syntax highlighting sometimes gets disabled even if file extension
is .PAS.