Jump to content

jaromir

uniGUI Subscriber
  • Posts

    83
  • Joined

  • Last visited

Posts posted by jaromir

  1. On 10/30/2018 at 5:50 AM, elGringo said:

    But how, for example you find memory leak in special exact place of code?

    Regards, Stan

    Hello Stan

    I’m not at screen at this moment so I give You only brief. 

    First You have to enable FullDebugMode in FastMM configuration file. You have to remove dot at proper line. 

    Next You have to enable „include debug info” at compilator options. After next build You can execute app. During app close, if any leak will be detected You will see detailed log file with code lines whitch makes leaks. 

    Don’t forget to disable including debug info in next builds because it makes exe much more bigger in size. 

    Best regards

    Jaromir

  2. Hi. 

    For me it is not good idea. What do You want to achive ? Cleaning memory after application close ?

    For me leak is mistake / error and I want to repair all this mistakes. I use fastmm or similar solution with full debug mode. All leaks should be repaired at place where they appear. 

    Cleaning all leaks at app close is dirty solution. Your app can work long time without restart and it should consume as small amount of memory as possible.

  3. 16 hours ago, Ruslan said:

    How many projects on Delphi works on Linux, and how many on Windows? I think that <10% under linux and from a commercial point of view there is no sence to waste time on that when you still not good on Windows.

    I’m sorry my friend but perhaps You don’t understand what unigui is and what it works.

    It is a lot of reasons to have unigui at Linux. For me Windows is a bigest disadventage of unigui.

    We wrote a lot of Unix/Linux deamons in delphi which are compiled at target hosts at FPC. It works like a harm with remobject soap/binary protocols and with zeos database support. I mean quite big production systems working from years.

  4. On ‎4‎/‎6‎/‎2018 at 9:51 PM, Farshad Mohajeri said:

    I will add my comment later when I have enough time to fully address all of your concerns mentioned here in this thread.

    I'm using UniGui and I'm scared.

    The father released code with using UniGui the more "So if…"

    I'm sorry - I'm very sorry about this approach but what If something wrong happened with Mr. Farshad.

  5. Isn't mean end of Sencha upgrade possibility for UniGui ? I understand that current licenses regulations are valid. But I don't belive that new owner will be interested to sell upgrade for market rival.

  6. Solved. Thank You.

      grData.ClientEvents.UniEvents.Values['beforeInit'] :=
        Format('function (sender, config) 
          { if (config.width >= %d) {config.forceFit = true;} }',
        [grData.Columns.ColumnsWidth]);
    
  7. Thank You !

     

    It works like expected.

    I tried to turn on forcefit in code when columns width sum is less or equal than grid size.

     

    Columns width sum is easy:

      TUniDBGridColumnsHelper = class helper for TUniDBGridColumns
      public
        function ColumnsWidth: Integer;
      end;
    
    function TUniDBGridColumnsHelper.ColumnsWidth: Integer;
    var
      i: Integer;
    begin
      Result := 0;
      for i := 0 to Self.Count - 1 do
        if Self[i].Visible then
          Result := Result + Self[i].Width;
    end;
    

    But unfortunately I can't get grid width at code. Grid.width is the same as in design time.

    Delphi Developer could You help again please ?

  8. Hello,

     

    Is it possible to change grid forcefit property at runtime ? If so how i can achieve this.

    I tried this but without luck:

    function reconfigure(sender, store, columns, oldStore, oldColumns, eOpts)
    {
      sender.headerCt.forceFit=true
    }
    

    Regards

×
×
  • Create New...