Jump to content

Vandrovnik

Members
  • Content Count

    522
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Vandrovnik

  1. 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.
  2. 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
  3. 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?
  4. 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.
  5. 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;
  6. Vandrovnik

    Download Images from a URL

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

    10.4.2 LSP code completion error

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

    10.4.2 LSP code completion error

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

    Embarcadero.com

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

    Embarcadero.com

    I access Quality Portal on https://quality.embarcadero.com/
  11. 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.
  12. 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.
  13. Does Refactor / Rename work for you in 10.4.2? Here it always says something like this:
  14. 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?
  15. Vandrovnik

    QueryPerformanceCounter precision

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

    Reverse method walker

    When refactoring/rename works (which for me it does not in 10.4.2 now), I renamed the method to something which is not used in the project. Then I used Find in files. And finaly refactoring/rename back to original name.
  17. Hello, from Delphi 10.3.3, I have in .dpr, among other used units, this line: IBX.IBStoredProc in 'C:\Program Files (x86)\Embarcadero\Studio\20.0\source\IBX\IBX.IBStoredProc.pas', (there was a bug in IBX, so I changed the source and added it to project, so that it was compiled with it). Now with Delphi 10.4.2, the file does not exist on that path. But when I build the project, there is no error, no warning, no hint... It silently uses already compiled IBX.IBStoredProc in the same way, as it would, if I did not put full path in .dpr file. Is that expected and correct, or should be reported?
  18. Vandrovnik

    Delphi ignores path to unit in .dpr

    In my case, IBX.IBStoredProc is not "my" unit, it comes with Delphi (IBX package). I have appended it to the project in Delphi 10.3.3 just to make Delphi to compile it with a patch. Now I was surprised that project builds fine, even when the file does not exist anymore. Delphi probably finds C:\Program Files (x86)\Embarcadero\Studio\21.0\lib\win32\release\IBX.IBStoredProc.dcu and silently uses it, but I do not believe this is correct. I think this can be good source of hard to find bugs, while an error or at least a warning would help to prevent them. I have reported it here: https://quality.embarcadero.com/browse/RSP-33506
  19. Vandrovnik

    Delphi ignores path to unit in .dpr

    In .dproj file, there is also full path to non-existent file: <DCCReference Include="C:\Program Files (x86)\Embarcadero\Studio\20.0\source\IBX\IBX.IBStoredProc.pas"/>
  20. Vandrovnik

    Min & Max

    I have also found this comparing of the performance: https://github.com/xiadz/cmov
  21. Vandrovnik

    Min & Max

    Thanks, voted... My knowledge of assembler is frozen before Pentium instruction set...
  22. Vandrovnik

    Min & Max

    Is it possible to implement Min or Max without conditional jump?
  23. Vandrovnik

    problem with file attributes

    You are writing to .xlsx and trying to query/open .xls...
  24. They have added ResStringCleanupCache to System.SysUtils. When I call it when loading another language module, it seems to work OK, too. { ResStringCleanupCache cleanups internal cache of loaded resource strings. Useful for applications dynamically changing resource DLL's. } procedure ResStringCleanupCache; "Documented" here: http://docwiki.embarcadero.com/Libraries/Sydney/en/API:System.SysUtils.ResStringCleanupCache
  25. In System.SysUtils: procedure InitResStrings; begin InitializeCriticalSection(ResStringCritSect); AddModuleUnloadProc(ResStringModuleUnloadProc); LoadResStringFunc := @ResStringLoad; end;
×