Hi, I changed line 7: TElement = record strr: String; end; TList = array[0..1] of TElement; //HERE Plist = ^TList; and demo works. Simply, static and dynamic arrays are not the same. AFAIR, dynamic array is just pointer while static array are data. I guess someone else will give you more detailed answer. V. ______________________________________________________________
Od: Valdas Jankūnas via Lazarus Komu: Lazarus@lists.lazarus-ide.org Datum: 29.04.2018 18:16 Předmět: [Lazarus] Runtime error: INCLOCKED
type TElement = record strr: String; end; TList = array of TElement; Plist = ^TList; ..... Why I getting that error? Something wrong with records and constant initialization? My system is: Linux 4.13.0-39-generic #44-Ubuntu SMP Thu Apr 5 14:25:01 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux FPC (from SVN): 3.1.1 [2018/02/21] for x86_64 -- Valdas Jankūnas -- _______________________________________________ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus <https://lists.lazarus-ide.org/listinfo/lazarus>
-- _______________________________________________ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus