Following 'What-A-Twist' post: https://plus.google.com/101464037359200037201/posts/cbQtQCwcDbg

Following 'What-A-Twist' post: https://plus.google.com/101464037359200037201/posts/cbQtQCwcDbg

In the test project, there is a list box with several items. Change form size (if needed) to make list box scroll bar shown.
Open Windows task manager. Launch test application. Find a test application process in task list.
Click and hold scroll bar thumb with mouse, and drag thumb continuously up and down. Just look at test application memory consumption. It grows steadily, with each scrollbar thumb drag iteration. First, this bug was found by my colleague, in combo box control. Actually, any control, invoking scrollable item list, would result in such memory leak. Just click and scroll your item list (this is another name for 'doing nothing'), and watch your application steadily eating RAM.

Comments

  1. Sounds rather basic. Is this VCL or FMX? Could you provide a MCVE (Minimal, Complete, and Verifiable Example)?

    ReplyDelete
  2. It's FMX. As for example, creating combo, or ListBox, with, say, 10 items, on empty form is enough, so I did not create specific sample code.

    ReplyDelete
  3. Can't reproduce, sorry. There could be something else in the mix, causing your leak.

    ReplyDelete
  4. It was found under XE7, not XE8.
    In XE8, it consumes some RAM, ok, but the allocation ceases to grow after a while.

    ReplyDelete

Post a Comment