Jump to content

Cristian Peța

Members
  • Content Count

    330
  • Joined

  • Last visited

  • Days Won

    4

Posts posted by Cristian Peța


  1. 16 hours ago, Wagner Landgraf said:

    All the transaction-related code has the usually pattern try..except, having a Rollback in the except block followed by a raise.

    I use this construct and this will go well with any exceptions but there is a weakness if the library will not set InTransaction how it should.

    try
      StartTransaction;
      ....
      Commit;
    finally
      if InTransaction then
        Rollback;
    end;

     


  2. 2 hours ago, softtouch said:

    Delphi 11.3 always rearrange its toolbars with every start. 

    The first attached image shows how it should look after I move them to their positions, the second image shows what Delphi 11.3 makes out of it. With every restart of the IDE, I have to rearrange the top toolbars 😞

    I am using a 4K monitor with a scaling of 125%.

    When I use Delphi DPI unaware, it stays always the same, when I use a monitor scaling of 100%, it always stays the same, but when I use a monitor scaling of 125% on my 4K display, it rearrange the toolbars.

    That did not happen in any version below 11.3 (11.0, 11.1, 11.2).

     

    Delphi_11_2023-02-28_08-33-04.png

    Delphi_11_2023-02-28_08-33-36.png

    I can't reproduce but I didn't touched the default positions. Scaling 150%, DPI Unaware, Light theme.

    image.thumb.png.001223f896fcccc1c10d165fb0ca40fc.png

     

    PS. Now I see that issues are only with monitor scaling between 124% and 130%.....


  3. On 2/12/2023 at 2:32 PM, Keesver said:

    Nowadays we let Windows handle this using an MSIX installer accompanied by an .appinstaller file

    But this doesn't work for Windows 7 from what I understand.

     

    On 2/12/2023 at 2:32 PM, Keesver said:

    This works as long as the the application is installed inside the user profile, not when it gets installed in 'Program files'. 

    We used Chrome approach for this and avoided elevation to write in 'Program files'. Elevation is necessary only first time at installation when we create a task in scheduler on the SYSTEM account.

    Actually two tasks: one with a day trigger and one with a trigger that can be started from our app at demand.

    • Like 1

  4. 2 hours ago, Attila Kovacs said:

    I'm running my Berlin and even my D2007 in HDPI mode -with some custom expert along- to get a crisp picture and you are using the latest HDPI aware IDE in blurry mode?

    What about VCL form designer? There are not things too small?


  5. On 12/16/2021 at 10:37 AM, A.M. Hoornweg said:

    - The encryption key contains information of the host machine. The drives will only decrypt on the same host machine.

    - So if my notebook dies, I'm basically scr##ed because the VM won't run anywhere else.

    Just tried in latest VMware 16 Workstation and my Win 11 VM with Delphi works on other machine.

    No workarounds. TPM installed and VM password encrypted.


  6. 20 hours ago, Celso Henrique said:

    Now, when I call the Use Unit form by keyboard shortcut, the focus is not set on the name field, so I have to use mouse to click there. 

    This doesn't affect my workflow so I will not report this issue in quality portal.
    You can either report it or you will have to live with it.


  7. On 12/31/2021 at 5:44 PM, Tom F said:

    Should I be using TNetHttpClient rather then THTTPClient?

    TNetHttpClient is a component that uses THttpClient internally. If you don't need what TNetHttpClient offers then use directly THttpClient.

      TNetHTTPClient = class(TComponent)
      private
        FHttpClient: THTTPClient;

     

    • Like 1

  8. "On 64-bit versions of Windows, you have two separate Program Files folders. But it doesn’t end there. You also have two separate system directories where DLL libraries and executables are stored: System32 and SysWOW64. Despite the names, System32 is full of 64-bit files and SysWOW64 is full of 32-bit files. "

    https://www.howtogeek.com/326509/whats-the-difference-between-the-system32-and-syswow64-folders-in-windows/


  9. Solved.

    The issue was caused by Sentinel envelope that is applied to the executable. The envelope decrypts and decompress the EXE in memory and is doing a lot of other stuff. The envelope permitted to start the executable but because some incomplete installed drivers I suppose it does not do all the job to restore all what is needed to run properly.

×