Jump to content


Popular Content

Showing content with the highest reputation on 06/09/20 in all areas

  1. https://larsfosdal.blog/2020/06/09/preview-any-text-file/
  2. Edwin Yip

    New FastCGI for Nginx in Delphi

    Today I discovered a new FastCGI implementation for the Ngix web server in Delphi and think I'd share it with you: https://github.com/kylixfans/FastCGI PS, I didn't make this - it's by my fellow countryman, but I guess here is the best sub-forum to make such a post?
  3. David Heffernan

    Typed constants in Delphi.

    Show me some evidence based on measurements.
  4. Dany Marmur

    Your RAD Studio 10.4 Sydney issues

    Nothing much askew with the first one. But do we really need two? Redundancy is a bad pattern/idiom.
  5. Dinar

    Your RAD Studio 10.4 Sydney issues

    You can try to restore the settings from the backup according to these instructions. Backups are automatically created by the Migration Tool before the current configuration settings are overwritten in the following cases: Importing Settings from a Migration File Migrating Settings to a Newer Product Version Restoring Settings from Backup
  6. Uwe Raabe

    Your RAD Studio 10.4 Sydney issues

    Perhaps something similar to this: https://quality.embarcadero.com/browse/RSP-29126
  7. Dalija Prasnikar

    Your RAD Studio 10.4 Sydney issues

    Err... that option does not exist any more. You have to use migration tool to preserve settings if you are reinstalling and updating and also for upgrading to new major version.
  8. David Heffernan

    Typed constants in Delphi.

    Colours aren't hex. Hex is just a different way to write an integer, using base 16. For instance $10=16.
  9. Tommi Prami

    FireBird tool, Coworker doing this, 2.0 just released

    Version 5.3.0 (June 5, 2020) - Added connection tabs options - Added fetch all option into data popup menu - Fixed BLOB editor - Fixed check for updates - Fixed connection dialog - Fixed grid control - Fixed options setting - Fixed SQL editor - Fixed SQL formations - Fixed startup Note! This product is always completely FREE for you. See the license.
  10. Kas Ob.

    Help to port this component to delphi rio

    I want to suggest to try different components, it is also open source, after looking at the documentation, i can say the VC components from LakeOfSoft http://www.lakeofsoft.com/vc/ are more powerful, not sure if there will be warnings or not, but you should have a look. The features listed in that link, but it missing key things to mention like, fully multithreaded, this can save you great deal of time.
  11. Mahdi Safsafi

    Typed constants in Delphi.

    Since I gave an explanation, I believe that it's you who should give a test! Anyway, I made a simple Perl-script that generates random constants values and a dummy function that consumes those constants: unit DummyTypedUnit; interface const A0 : Integer = RandomValue; ... AN : Integer = RandomValue; implementation end. // ----------------------------- unit DummyUnTypedUnit; interface const A0 = RandomValue; ... AN = RandomValue; implementation end. program [Un]TypedTest; {$APPTYPE CONSOLE} {$R *.res} uses System.SysUtils, Dummy[Un]TypedUnit in 'Dummy[Un]TypedUnit.pas'; function Dummy(Input: Integer): Integer; begin Result := 0; if Input = A0 then inc (Result); // ... if Input = AN then inc (Result); end; var i: Integer; begin Read(i); i := Dummy(i); WriteLn(IntToStr(i)); end. For each n time, I compiled both test on x86 and x64: # result ; second time # n = number of constant # time in min.sec.ms # x86: # ---- n = 100 : untyped : 00.01.12 typed : 00.01.18 n = 1000 : untyped : 00.01.14 typed : 00.01.16 n = 10000 : untyped : 00.00.88 typed : 00.00.82 n = 100000 : untyped : 00.05.85 typed : 00.06.26 #x64: #---- n = 100 : untyped : 00.01.10 typed : 00.01.09 n = 1000 : untyped : 00.01.12 typed : 00.01.15 n = 10000 : untyped : 00.01.56 typed : 00.02.02 n = 100000 : untyped : 00.08.90 ; 00.06.48 typed : 01.00.95 ; 00.48.15 I did my best to make them run on a fair conditions : - Declaring constants in the same unit. - Using a short name for constants. In a world where typed-constants are declared on different units and mixed with long name/type things may get worse specially for x64 ! Let me know if you need to test yourself, I'll be glade to send script and tests.
  12. santiago

    Your RAD Studio 10.4 Sydney issues

    Not a major issue, but ProductVersion is set to 26 (same as Delphi Rio) when it should be 27. https://quality.embarcadero.com/browse/RSP-29480 We have internal tools that are failing due to that. For now we have just edited the registry by hand.
  13. Mark Williams

    SendMessage From DLL

    Ah ha! The penny at last drops. The dangers of copying code that works in 32 bit, but no longer in 64 bit. My DLL is 64bit, but when I created a test executable to try and send the message I must have compiled it as 32 bit rather than 64 so it worked. The SendMessage needed to be: WinAPI.Windows.SendMessage(Hdl, WM_COPYDATA, 0, LPARAM(@copyDataStruct)); That was the only reason the message was not getting through and had I realised this 48 hours ago I might have some hair left. It's time for that Lockdown drink! I will raise a glass to you
  14. I revisited my dzBdsLauncher tool again – no idea why, it just occurred to me 😉 – and added quite a few improvements: It now supports .dof (Delphi 6 and 7) and .bdsproj (Delphi 2005 and 2006) files. In addition to the previous checks it now also looks at the disabled packages list to determine which Delphi version to start. That’s the only option for Delphi 2005 and 2006 because these files are nearly identical. It can now also handle .dpr files by looking for corresponding .dproj, .bdsproj and .dof files (in that order) and taking these to determine the correct Delphi version. As a side effect I found a problem with the Delphi 10.1 version of the GExperts .dproj file. It had a wrong ProjectVersion entry. The blog post with download link is here.