Jump to content

Vandrovnik

Members
  • Content Count

    583
  • Joined

  • Last visited

  • Days Won

    6

Posts posted by Vandrovnik


  1. 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);

     


  2. 1 hour ago, gkobler said:

    I have installed FB3 as a service. FB2.5, 4.0 and 5.0 are also installed, but i run these version not as a service it runs as program with different port configuration. So i can run different FB-Server versions at the same time.

     

    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.


  3. 24 minutes ago, David Heffernan said:

    Not according to Embarcadero. According to Embarcadero Delphi is blazing fast because it uses native code.

     

    We all know that to be absolute marketing BS and in fact Delphi compilers produce shitty code that often runs very slowly. 

     

    Yes, my original post was sarcasm.

    I was not sure about the sarcasm, but decided to reply, so that someone does not believe it blindly 🙂

     

    • Thanks 1

  4. 2 hours ago, ginnix said:

    I have Rad Studio 12 with the new patch. When I try to install the Android runtime using Manage features it shows operation successful but nothing gets installed.

     

    I also checked C++, same thing, operation successfully but nothing gets installed.

     

    Any info would help.

    https://blogs.embarcadero.com/getit-update-additional-rad-studio-12-getit-packages-are-now-available/

     

    There is a note:

    "Customers who have installed RAD Studio 12 using the online installation process won’t have the ability to add new platforms and core features to the product via the Manage Features dialog. In order to do this, they will need to uninstall and then reinstall using the new inline release."

    Could this be the reason?

    • Like 1

  5. 2 hours ago, Dalija Prasnikar said:

    You mean the issue with division with $FFFFFFFF constant? That is nowhere near being a showstopper bug. As a workaround it is possible to use variable instead of constant. And this issue is fixed, but at the moment hotfix cannot be delivered due to outage.

    I mean this one:

    https://quality.embarcadero.com/browse/RSP-43274 (Arithmetic operations on record fields return incorrect results in certain cases if the "Optimization" compiler option is enabled.)

    This looks like a showstopper bug for me, because it can generate wrong result anywhere in the application. Turning off optimizations will "solve" the problem, but the result will be that all my customers will write to me about how the new version of the app is slow.

     

    And as for distribution of the hotfix - is it really impossible to distribute the fix in year 2024 other than through a non-functioning Getit? Downloading files from my.embarcadero.com works normally, so why not put the patch there?

     

    • Like 3

  6. 2 minutes ago, corneliusdavid said:

    For me, any open source package that I had previously installed via GetIt, I'm now pulling from GitHub. I suppose I should've done that from the beginning as it would always provide the latest version but this has certainly solidified that decision.

    Same for me - in previous versions (do not know about Delphi 12 - not using it yet), it usually took several weeks to months before they prepared the packages for Getit, that is another reason why not to use Getit and install manually.

×