Peter B via fpc-pascal wrote: > I suggest trying without optimisations and/or using cmem, to see if that > changes the outcome. I would rather use a system memory debugger <https://elinux.org/Memory_Debuggers> to find the cause of the corruption. Regards, Adriaan van Os