Jump to content

raj_delphi

Members
  • Content Count

    6
  • Joined

  • Last visited

Posts posted by raj_delphi


  1. Hi, I'm using multiple panels in my main form, each panel holds different controls. Also, each panels are aligned with alClient, alright, alleft. I'm using TRzSplitter to expand the panels. Once I expand the panel using splitter (say modifying the layout) and minimizes the main form and reopen it again,  then the panels are re-aligned to it default size. It is not retaining the modified one.

     

    Note: I'm using Delphi 10.4.


  2. On 12/1/2023 at 7:08 PM, DelphiUdIT said:

    For SEH you can look at this: https://github.com/vic4key/SEH-For-DELPHI

     

    For CFG (Control Flow Guard), you can set the flag that signal that your program adheres to, but there is not implementation in Delphi compiler (the same like @Kas Ob., I not sure about that).

     

    Put in you DPR source this line, Process Explorer will show you that the flag is activated.:

     

    
    {$SETPEOPTFLAGS $4000}       //SET CFG ON   (Control Flow Guard)

    For your DLL you can use this (I use it in C++):

     

    
    IMAGE_DLLCHARACTERISTICS_GUARD_CF("IMAGE_DLLCHARACTERISTICS_GUARD_CF", 0x4000, "Image supports Control Flow Guard.")

    P.S.:  I DON'T KNOW HOW THESE SETTINGS WORK IN A CFG-AWARE Operating System (like Windows Server) ... you must try ...

      {$SETPEOPTFLAGS $4000} this command enabled the CFG... Thank you so much!


  3. This issue has been resolved by setting <TOtlthreadPool>.Affinity.AsMask  = <affinity value>, by setting this whenever the OTLThreadPool starts is SCHEDULE, the assigned affinity take in place. and this is not resetting the system affinity as well (which I set during the start of the program)


  4. How to set the affinity for TOmniThread/TOmiTaskControl, it is keep on resetting the default affinity value (utilizing all CPU's).

    I tried setting Environment.Process.Affinity.AsString,  but this value also keep on changing to default (255), it is happening when the OmiThread starts, I see it have many properties to set the affinity, but I'm not sure how to set it.

×