[SOLVED] FPC 3.2.2/4 problem with the old memory manager (or my code 💁‍♂️) lazarus / 64-FPC development ---------------------------------------------------------------------- ALLIGATOR · 2025-11-27 05:29 FPC 3.2.2 & 3.2.4 x64 Windows Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i program app;begin  for argc:=9 to 9 do    GetMem(1);end. Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i Access violation reading from address $FFFFFFFFFFFFFFFF ---------------------------------------------------------------------- H₂SO₄ · 2025-11-27 05:58 I don't know what else you'd expect to happen when carelessly manipulating the argument count like that  Take a look at  InternalExit  in  system.inc,  called on program shutdown: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i {$if (defined(MSWINDOWS) and not defined(win16)) or defined(OS2)}  { finally release the heap if possible, especially    important for DLLs.    Reset the array to nil, and finally also argv itself to    avoid double freeing problem in case this function gets called twice. }  if assigned(argv) then    begin      for i:=0 to argc-1 do        if assigned(argv[i]) then          begin            sysfreemem(argv[i]);            argv[i]:=nil;          end;      sysfreemem(argv);      argv:=nil;    end;{$endif} ---------------------------------------------------------------------- ALLIGATOR · 2025-11-27 06:38 Well, well! In my defense, I will say that I don't have debug symbols for version 3.2.2/3.2.4, so I couldn't diagnose it properly. And on FPC [main], the behavior did not repeat itself. Thank you)