Jump to content

Vandrovnik

Members
  • Content Count

    531
  • Joined

  • Last visited

  • Days Won

    6

Vandrovnik last won the day on December 20 2022

Vandrovnik had the most liked content!

Community Reputation

203 Excellent

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Vandrovnik

    Avoid parameter evaluation

    If log level is defined in compile time, he could also use $IFDEF or $IF instead 😄
  2. Vandrovnik

    Avoid parameter evaluation

    In a loop, I would store the result of CanLog to a local boolean variable and then use "if StoredValueOfCanLog>=..." and direct call to your Log procedure (without anonymous function).
  3. Vandrovnik

    Android upcoming 16 KB page sizes support

    I tried to "vote" by adding a comment. And created a request for adding a "vote" button 🙂 https://embt.atlassian.net/servicedesk/customer/portal/1/RSS-1439
  4. Vandrovnik

    Avoid parameter evaluation

    May be something like this, but it looks even more complicated then the test with if CanLog... 😄 type tLogFunction = reference to function: string; procedure Log(aLevel: integer; aGetLogText: tLogFunction); var s: string; begin if aLevel>1 then begin s:=aGetLogText; writeln(s); end; end; ... Log(0, function:string begin result:='abc ' + IntToStr(random(100)); end); Log(2, function:string begin result:='efg ' + IntToStr(random(100)); end);
  5. Vandrovnik

    Indy documentation

    Since 2021 😄 A busy man...
  6. Vandrovnik

    Indy documentation

    Thank you!
  7. Vandrovnik

    Indy documentation

    Please is there documentation for Indy? I tried to download it from https://www.indyproject.org/documentation/ , but all links are broken... (at least here they apper broken).
  8. Vandrovnik

    Tool to sort units used in project by dependency

    The new unit order can have unintended side effects - if two unites define procedures with the same names and their order is swapped, the code will use a different procedure than before (such as System.Math and Neslib.FastMath do).
  9. When I change System.SysConst.pas or Vcl.Consts.pas (to translate some messages), I always put them to the folder where my app is and I also use Project, Add and manually add them. But I always keep the interface part the same as in original file, otherwise all dependent units have to be recompiled.
  10. Vandrovnik

    Do you need an ARM64 compiler for Windows?

    I hope they keep it the way it is - can you imagine how many broken versions we would have to suffer if they now moved .bpls to another process? 🙂
  11. Vandrovnik

    Trying to install JCL but I got error

    Almost all my problems with JCL and JVCL installs were because of I had somewhere on the disk (on the path) another instance of JCL/JVCL, which was (partially) used instead of the new version.
  12. I guess you cannot.
  13. What about this: SELECT rdb$get_context('SYSTEM', 'ENGINE_VERSION') as version from rdb$database;
  14. You can use instsvc.exe and run all of them as service simultaneously. When using instsvc.exe, use "-n" and create unique names for them.
×