Closed raelb closed 4 years ago
Using FastMM shows there is a memory leak. If I comment out this bit in the second last line of code, the problem does not occur:
or DT_END_ELLIPSIS or DT_MODIFYSTRING
Although I'm not sure why this would cause memory problems..
From the Microsoft documentation of Dray text.
If uFormat includes DT_MODIFYSTRING, the function could add up to four additional characters to this string. The buffer containing the string should be large enough to accommodate these extra characters.
You are not doing that and there is memory overrun. All sort of problems could occur.
Hello,
Perhaps you can help me with this problem. I am using the following custom paint routine for elv (View = elsList):
It has worked fine for me on other occasions, however in this project it gives an error if I resize the main window after the app starts. Perhaps it is due to large number of items. If I first scroll through all items, and then resize the main window, then the AV does not occur. (perhaps some initialization is taking place that is required..) The AV also occurs after entering some search terms.
I am using the latest code from pyscripter Mustangpeak ELV and CommonLib, although I get the same problem using the TurboPack branch. I'm using Tokyo on Window 10 x64.
Sample project attached. EasyListView AV Test.zip