Hi, I have a crash on Windows 10 in a very specific situation. The Event Viewer report only tells me the crash is inside XojoGUIFramework dll which does not really help. The set up is this.
Windows 10 running a hidpi enabled app on a 4K screen with scaling set to 225%, any other combination and the crash does not happen. Testing on VMWare and changing the res 1 pixel larger fixes it!
Compiling on macOS on 2019r1rc1 as well as 2018r4 and 2017r2.1 all have the problem.
The problem is related to the list box header, if I turn off hasHeading then the crash does not occur.
I have also been able to narrow it down to the crash occurring when the first and only column with * set in the column widths is shown.
I cannot replicate in a test app so I edited my large app to enable resizing and the crash does not occur when the heading is shown and the * column is not visible (listbox to small etc).
Resizing the window works fine until the list box header is going to show that column for the first time and then crash, this is not how the window is designed just for testing.
Changing the caption for that column header does nothing, changing font sizes does nothing, removing and readding the listbox does nothing. Removing all events handlers from the listbox does nothing (listbox has not been subclassed)
My only solution I can think of right now is detecting 4K screen with 225% scaling and show a warning about not being a compatible setup, only issue is this might not be the only combination it occurs on.
Does anyone have any helpful ideas on how to fix this?