You also have to add -Xg, or ‘Use external debug symbols file’ in Laxarus
Van: fpc-pascal namens Hairy Pixels
via fpc-pascal
Verzonden: vrijdag, juni 28, 2024 5:37 PM
Aan: FPC-Pascal users discussions
CC: Hairy Pixels
Onderwerp: [fpc-pascal] Heap trace on mac
Hi Ryan,I’ve created attached unit, which takes a code point and returns the utf8 char as a string. It’s based on the Wikipedia article on UTF8UTF-8 encodes code points in one to four bytes, depending on the value of the code point. The x characters are replaced by the bits of the code point:This t
I suggest to subscribe to the Lazarus/ Fpc forum. It’s very easy.
You don’t have to ask questions if you don’t want, and you can still learn a
lot from all questions and answers posted.
And no one is horassing anyone…
https://forum.lazarus.freepascal.org/index.php?action=forum
Cheers
J
_
I use this function to read a file into a string:
function ReadFile(const FileName: TFileName): String;
var
InputFile: THandle;
FileSize, BytesRead: Integer;
Buffer: String='';
begin
try
InputFile := FileOpen(FileName, fmOpenRead);
if InputFile = -1 then
begin
WriteLn