-
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 ExcellentRecent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
-
Avoid parameter evaluation
Vandrovnik replied to Maxime Janvier's topic in RTL and Delphi Object Pascal
If log level is defined in compile time, he could also use $IFDEF or $IF instead 😄 -
Avoid parameter evaluation
Vandrovnik replied to Maxime Janvier's topic in RTL and Delphi Object Pascal
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). -
Android upcoming 16 KB page sizes support
Vandrovnik replied to alejandro.sawers's topic in Cross-platform
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 -
Avoid parameter evaluation
Vandrovnik replied to Maxime Janvier's topic in RTL and Delphi Object Pascal
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); -
Since 2021 😄 A busy man...
-
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).
-
Tool to sort units used in project by dependency
Vandrovnik replied to uligerhardt's topic in Delphi IDE and APIs
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). -
Changes in System.sysutils.pas were not reflecting in other unit in Delphi 11
Vandrovnik replied to sp0987's topic in General Help
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. -
Do you need an ARM64 compiler for Windows?
Vandrovnik replied to Lars Fosdal's topic in Cross-platform
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? 🙂 -
Delphi 12: Installing via GetIt Corrupts the DPK of AsyncPro, VirtualTree, and SynEdit
Vandrovnik replied to twe's topic in Delphi IDE and APIs
Reported 5 years ago 😞 -
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.
-
Problem determining the correct Firebird server version
Vandrovnik replied to gkobler's topic in Databases
I guess you cannot. -
Problem determining the correct Firebird server version
Vandrovnik replied to gkobler's topic in Databases
What about this: SELECT rdb$get_context('SYSTEM', 'ENGINE_VERSION') as version from rdb$database; -
Problem determining the correct Firebird server version
Vandrovnik replied to gkobler's topic in Databases
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.