Jump to content

Vandrovnik

Members
  • Content Count

    575
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Vandrovnik

  1. Vandrovnik

    Toggle Form/Unit

    Is there following line in .pas file? {$R *.DFM}
  2. Vandrovnik

    Delphi roadmap 2024

    From users, so that they cannot complain about unfulfilled targets.
  3. You can also attach a NTFS volume to any directory, so if you like, you can create a partition on external harddrive, assign no letter to it and instead attach it to C:\Program Files (x86)\Embarcadero.
  4. Google Translate or DeepL are able to translate the documentation, too.
  5. Vandrovnik

    Delphi 12.2 available for download

    I wonder: is anyone going to upgrade from PRO to ENTERPRISE / ARCHITECT to have 64bit version of compiler?
  6. Vandrovnik

    3D render engine that works with Delphi

    virustotal.com tested .7z SDK archive looks OK:
  7. Vandrovnik

    3D render engine that works with Delphi

    I have seen this: https://dev.epicgames.com/documentation/en-us/unreal-engine/building-unreal-engine-as-a-library?application_version=4.27 But never tried it yet.
  8. Vandrovnik

    Android - debugging

    Hello, Please is debugging of Android 32 / Android 64 apps working in Delphi 12.1? I have created a new multi-device app, target platform = Android 32-bit, Build configuration = debug, Target = my Android phone (Android 10). Just main form, two buttons. When I build the app, set a breakpoint and run the app, it does not stop at the breakpoint and IDE displays a cross instead: All project options are in their defaults. Thank you, Karel
  9. Vandrovnik

    Android - debugging

    Debugging Android app is a nightmare 😞 After fresh start of Delphi, build and run, I mostly have "blue dots" and breakpoints work. As soon as I close the app and run it again, I never have blue dots/working breakpoints anymore. This happens even in a new app with one form and one button on it.
  10. Vandrovnik

    Firebird database on Android

    A few notices: If you try Firebird Embedded on Android 14, use snapshot build (5.0.1). Version 5.0.0 crashes there (4.0.4 also). https://github.com/FirebirdSQL/firebird/issues/8110 I have used their .aar file - renamed to .zip an extracted files manually. In Deployment manager: All files from .aar\jni\arm64-v8a -> library\lib\arm64-v8a\ Files from .aar\assets\firebird I put in one .zip file, which is in Deployment Manager put to assets\internal In runtime I unzip them to tPath.Combine(tPath.GetHomePath, 'fbasset') In runtime, before using FB client, I set environment variables: SetEnvironmentVariable('FIREBIRD_TMP', TmpDir); SetEnvironmentVariable('FIREBIRD_LOCK', TmpDir); SetEnvironmentVariable('FIREBIRD', tPath.Combine(tPath.GetHomePath, 'fbasset')); Firebird client is then loaded from: tPath.Combine(tPath.GetLibraryPath, 'libfbclient.so')
  11. Vandrovnik

    FloatToStr

    You can use FloatToStr and pass desired FormatSettings to it: http://docwiki.embarcadero.com/Libraries/Athens/en/System.SysUtils.FloatToStrF Regarding database, it is better and more safe to use SQL querries with parameters: SELECT * FROM MyProcedure(:ItemNo, :Qty) and then MyQuery.ParamByName('ItemNo').AsInteger:=1; MyQuery.ParamByName('Qty').AsCurrency:=11.25;
  12. Vandrovnik

    Android - debugging

    Hmm, a few minutes later, no blue dots again 😞
  13. Vandrovnik

    Android - debugging

    IDE freezes (with a small window for error message, but it did not display the text nor buttons - just empty rectangles), app freezes 😄 But - I killed IDE, uninstalled app from device. Killed adb.exe and lldb-mi.exe. Deleted the contents of "Android" folder. Start IDE, rebuild, run - there are blue dots, breakpoint works...
  14. Vandrovnik

    Android - debugging

    Debug is active:
  15. Vandrovnik

    Show executable size after successful build?

    You can define a post-build event; even a simple .bat file containing something like "dir app.exe" can print this information to the "Output" tab in the IDE. Or, instead of "dir": forfiles /P "C:\MyAppFolder" /M "MyAppName.exe" /C "cmd /c echo @file: @fsize"
  16. Vandrovnik

    Avoid parameter evaluation

    If log level is defined in compile time, he could also use $IFDEF or $IF instead 😄
  17. 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).
  18. 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
  19. 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);
  20. 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).
  21. Vandrovnik

    Indy documentation

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

    Indy documentation

    Thank you!
  23. 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).
  24. 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.
  25. 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? 🙂
×