This problem is stay in Lazarus rev61198 (fixes), fpc 3.0.5(fixes)
Run with debugging, or run directly exe with parameters,
okay. But run without debugging, the first parameter ParamStr(1) invalid, because my code won't work.
My code in formcreate about:
if UpperCase(ParamStr(1)) = UpperCase('XX') then XCheckBox.Visible := True;
But, this code works in same place without debugging:
ShowMessage('"'+ParamStr(1)+'"');
I like Lazarus, but I always got many impossible errors... Environment: Win7, x64, compiled to x86.
Edit1.:After this project lps file deleted, now above code works without debugging. LOL.
Edit2.:... because build mode changed to "default". But with "release" build mode, the above code doesn't work without debugging. In debug build mode - works.