[SOLVED] strange INITFINAL generation lazarus / 64-FPC development ---------------------------------------------------------------------- Key-Real · 2024-07-16 22:45 Finaly, I found it! if I have no initialization in system.pp he compiles me: Code: ASM  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i .section .data.n_INITFINAL        .balign 4.globl  INITFINALINITFINAL:        .long   1,0,0        .long   FINALIZE$_$OBJPAS  If i have in system.pp: 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 ....begin  { Reset IO Error }  InOutRes:=0;end.  he compiles me: Code: ASM  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i .section .data.n_INITFINAL        .balign 4.globl  INITFINALINITFINAL:        .long   2,0        .long   INIT$_$SYSTEM        .long   0,0        .long   FINALIZE$_$OBJPAS  btw. I had another Read After Write Issue, I corrected it, now random() works as expected ---------------------------------------------------------------------- Key-Real · 2024-07-17 07:42 ups, perhaps it was to late yesterday. This was not the issue. Sorry for spam. ---------------------------------------------------------------------- Key-Real · 2024-07-17 17:35 !!!!!    never do something in the system unit at initialization! (between the final begin and end. ) ---------------------------------------------------------------------- PascalDragon · 2024-07-18 19:37 Quote from: Key-Real on July 17, 2024, 07:35:29 pm!!!!!    never do something in the system unit at initialization! (between the final begin and end. ) That is wrong. The whole System unit is supposed to be initialized there (parameter parsing, I/O, heap, etc.). Just look at what the initialization-section (which is equivalent to begin … end in units) does in other targets.