Jump to content

Vandrovnik

Members
  • Content Count

    560
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Vandrovnik

  1. Vandrovnik

    Android .aab - assets for Android32 missing

    Yes, Delphi 10.4.2 Pro. May be I am doing it wrong. Let's say I have: - file A for Android 32 - in deployment manager, it has two rows (Android - Release, Android - Debug). - file B for Android 64 - in deployment manager, it has two rows (Android64 - Release, Android64 - Debug). Now when I create .aab file for Release, Application store (with checked option "Generate Android 32-bit and 64-bit binaries), this .aab contains only file B. So I have to place file A to deployment manager for Android 64 bit too (this was my mistake: I thought Delphi takes this file automatically). But I guess Google Play will never be able to recognize that this file A is for 32-bit Android only and will deliver it to all devices. And probably will also deliver file B to 32-bit devices...
  2. Vandrovnik

    Several F2084 Internal Error on Delphi 10.4.2

    I have almost no problems, but my projects are smaller - the largest one is about 1.5 M lines of code. I use no runtime packages and since I stopped to use their translation manager, I do not use project groups anymore (to be more precise, there is only one project in the project group). VCL apps for Win32 and Win64. FMX apps for Win32, Win64, Android32, Android64, but these are much smaller.
  3. Hello, I use Better Translation Manager from @Anders Melander to create language modules. This works fine even with 10.4.2. In the application, I use resourcestrings. BTM translates them and saves them to, for example, .DEU file for German translation. I have checked with Resource Hacker that translated resourcestrings are there. In the application, I load resource file, it works for components. Unfortunatelly, when I use resourcestring in the application like MyButton.Caption:=xxZavrit (resourcestring), it is not correctly loaded from .DEU file (it is loaded from .exe instead). It was working fine in 10.3.3, but does not work in 10.4.2. Were there any changes regarding loading resourcestrings? I am using an old function which sets new resource file in place: function SetResourceHInstance(NewInstance: HModule): HModule; var CurModule: PLibModule; begin CurModule := LibModuleList; Result := 0; while CurModule <> nil do begin if CurModule.Instance = HInstance then begin if (CurModule.ResInstance <> CurModule.Instance) then FreeLibrary(CurModule.ResInstance); CurModule.ResInstance := NewInstance; Result := NewInstance; Exit; end; CurModule := CurModule.Next; end; end; Kind regards, Karel
  4. Vandrovnik

    Pos

    🙂 Fortunately it is usually enough to type "incl", press Ctrl+space, arrow down, enter.
  5. Vandrovnik

    Several F2084 Internal Error on Delphi 10.4.2

    What is a hotfix: a small piece of code developed to correct a major software bug or fault and released as quickly as possible. This one probably will not be much hot...
  6. Vandrovnik

    Android - new version of file in assets\internal\

    Hmm, for now "solved" for deployed file MyFile.txt on app start: - if exists, delete MyFile2.txt - rename (deployed) MyFile.txt to MyFile2.txt - in the app, use MyFile2.txt
  7. Vandrovnik

    compiling DCU without creating EXE

    What if you set in Project Options to create .exe on non-existent path, like W:\Output?
  8. Vandrovnik

    Delphi 5 Printing

    What about the printer name? Isn't it just quite long?
  9. Refactor/Rename did not work for me too. It started to work properly after installing some Windows updates, including optional ones (including KB5000842).
  10. Vandrovnik

    Several F2084 Internal Error on Delphi 10.4.2

    May be Emba could provide you this hotfix for testing? I guess it will not be worse than it is now.
  11. Could the problem be related to https://quality.embarcadero.com/browse/RSP-32278 ? I remember someone wrote that they solved it by changing TTask to TThread.CreateAnonymousThread.
  12. Vandrovnik

    A BIG and very strange BUG with High-DPI, VCL Style and Form Constraints

    Confirmed, problem appears 🙂 1) Monitor 1 @ 150 % Monitor 2 @ 100 % Monitor 2 is my primary monitor When app is on monitor 2 (primary, 100 %), it works fine. When app is on monitor 1 (not primary, 150 %), problem appears - app alternates between 150 % and 100 % zoom on this monitor 2) Monitor 1 @ 100 % Monitor 2 @ 150 % Monitor 2 is my primary monitor When app is on monitor 2 (primary, 150 %), it works fine. When app is on monitor 1 (not primary, 100 %), problem appears - app alternates between 100 % and 150 % zoom on this monitor
  13. Vandrovnik

    A BIG and very strange BUG with High-DPI, VCL Style and Form Constraints

    Can you upload whole project with all the settings you use?
  14. Vandrovnik

    A BIG and very strange BUG with High-DPI, VCL Style and Form Constraints

    Does not happen on my PC (100 % and 150 % monitors). Windows 10 Pro Czech, 20H2, build 19042.906.
  15. Vandrovnik

    Download Images from a URL

    uses System.Net.HttpClient; procedure TMainForm.Button1Click(Sender: TObject); var HttpClient: tHttpClient; m: tMemoryStream; begin m:=tMemoryStream.Create; try HttpClient:=tHttpClient.Create; try HttpClient.Get('https://www.embarcadero.com/images/logos/logo-black-corp-grey.png', m); finally FreeAndNil(HttpClient); end; m.SaveToFile('r:\img.png'); finally FreeAndNil(m); end; end;
  16. Vandrovnik

    Download Images from a URL

    THTTPClient? http://docwiki.embarcadero.com/Libraries/Sydney/en/System.Net.HttpClient.THTTPClient
  17. Vandrovnik

    10.4.2 LSP code completion error

    I have KB5000842 installed and code completion is working. W10 20H2 Pro Czech, build 19042.906.
  18. Vandrovnik

    10.4.2 LSP code completion error

    I have removed KB5000802, because it dies with blue screen when printing to Kyocera...
  19. Vandrovnik

    Embarcadero.com

    I wonder if someone reads these sliding boxes.
  20. Vandrovnik

    Embarcadero.com

    I access Quality Portal on https://quality.embarcadero.com/
  21. Vandrovnik

    Email Tampering

    E-mail clients often are able to work in offline mode and then send/receive e-mails when connection is available. I believe that in this case "Date" and first "Received" can differ significantly.
  22. DirectWrite has some methods that could be usefull. https://docs.microsoft.com/en-us/windows/win32/api/dwrite/nn-dwrite-idwritetextanalyzer It is able to display for example 🧑🏿‍🦽 correctly.
  23. Does Refactor / Rename work for you in 10.4.2? Here it always says something like this:
  24. Vandrovnik

    Range Check Error ERangeError

    In Windows.pas: type WPARAM = UINT_PTR; Then: UINT_PTR = System.UIntPtr; // NativeUInt; UIntPtr = NativeUInt; So just change the typecast to WPARAM should be enough. Now it probably would not work fine in 64 bits?
  25. Vandrovnik

    QueryPerformanceCounter precision

    Just a small correction: 3000 per microsecond ==> 3 per nanosecond, not 300.
×