Free Pascal Compiler version 3.0.4 [2017/10/06] for i386
Copyright (c) 1993-2017 by Florian Klaempfl and others
C:\FPC\3.0.4\bin\i386-Win32\fpc.exe [options] <inputfile> [options]
Begin S:='Hello World!'; Handle:=FileCreate('testing.123',2,438); FileWrite(Handle,@S[1],Length(S)); FileClose(Handle); End.
@engkin ... it is something with "create file" even this raises the same error:
(typed off the top of my head, but using old Pascal syntax same error):
Assign(BFH,'testing.456');
Rewrite(BFH,1); <--- Access Violation
Close(BFH);
Again the code works on Linux and Mac, hmmm.
If I change code to use Assign(File,'testing.123'); Rewrite(File,1); etc. works on Windows.
@engkin ... it is something with "create file" even this raises the same error:
(typed off the top of my head, but using old Pascal syntax same error):
Assign(BFH,'testing.456');
Rewrite(BFH,1); <--- Access Violation
Close(BFH);
Again the code works on Linux and Mac, hmmm.