Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Access Violation after remove of sort column #520
Steps to reproduce this issue
Access Violation. See attached bugreport.txt
Resort the table
Very same issue on version 10.1.0.5481
I can continue using the application and if I click "OK" the sorting option is removed from the sorting dropdown. I have also attached a bugreport.
edit: If it press "Reset sorting" I don't get an access violation. It only happens when I try to remove a single sorting option.
Your both bug reports have a similar but unequal callstack. The one crashed here:
But I guess @jweultjes already clicked on the "continue" button several times.
However, that crash lies deep within the VCL sources, which makes it nearly impossible for me to fix.
Is there at least some way to reliably reproduce the crash?
I was able to re-produce the issue when I changed theme from Windows to Turquose Gray and started to play with the Sorting dropdown (I opened the dropdown a few times and each time made some changes by adding/removing columns). Got the crash.
The issue gone when I switched back to Windows theme.
Hope this help.
P.S. I believe Reset & Add Col buttons in the dropdown should be on top. Otherwise it is hard to add multiple columns as while you just clicked Add Col button it went down and you have to move mouse to target it again. Not a big deal as I never use the dropdown in real life.
The crash happens regardless of the theme. It is not a theme issue.
To reproduce, you have to remove ALL of the sort filters by clicking the Xs in the dropdown menu. You will see the crash only when you remove the final sort filter. All the other filters will not cause problems. It's only the last one that has trouble. This will reliably reproduce the issue.
I suppose its worth mentioning that removing the filters by clicking the headers works fine.
I can confirm that this issue has nothing to do with themes (as far as i can see).
Extremely inconvenient. I have finally started to remember this, but when it is fixed i have to learn that its OK to remove all again..