Re: [fpc-devel] Now sure why this raises Runtime Error 216

2022-01-06 Thread Michael Van Canneyt via fpc-devel
On Thu, 6 Jan 2022, Ozz Nixon via fpc-devel wrote: Procedure Make_Language_File( Description,MenuPath,TextPath,QuestPath:String; Enabled:Boolean;SecurityLevel:Byte;Flags:Longint); Var FileSize:Longint; Begin Writeln('Language_File empty size is ',SizeOf(L)); FileSize:=0;

Re: [fpc-devel] Now sure why this raises Runtime Error 216

2022-01-06 Thread Ozz Nixon via fpc-devel
Just incase someone needs to know: (public release, not a custom build). 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] [options] On Thu, Jan 6, 2022 at 6:50 PM Ozz Nixon wrote: >

[fpc-devel] Now sure why this raises Runtime Error 216

2022-01-06 Thread Ozz Nixon via fpc-devel
Without SetLength(var,0) at the end I get Runtime Error 216 once, adding those - assuming FPC now required me to zero out those fields, I now get the error twice. Code: Program MakePrompts; Type Language_File = Record Description:Array of Char; {null terminated string}