Hello,
recently I saw a couple of times a "List index out of bounds" exception when closing a child window by clicking on X of a Tab.
In this situation there were still one or two other tabs open. I will try to reproduce this behavior but that can be pretty problematic.
At least here is the stack trace of the exception from Eurekalog:
2.5 Type : EListError
2.6 Message : List index out of bounds (1).
2.7 ID : 44C6E2BE
Operating System:
6.1 Type : Microsoft Windows 10 (64 bit)
6.2 Build # : 1903 (10.0.18362.30)
6.3 Update :
6.4 Language: English (0409)
6.5 Charset : 0/1252
For call stack see the attached Eurekalog file/
Hello Thomas,
We replicated an issue with a similar call stack. However, we had to patch our sources. Would you please clarify whether you use a descendant of our TdxTabbedMDIManager?
Also, please apply the following patch in our sources on your side, recompile the project, and try to replicate the issue:
procedure TdxTabbedMDIClientControl.DoNonClientAreaPaint(DC: THandle); begin if not IsLocked and not TabbedMDIProperties.IsUpdateLocked then PaintWindow(DC); end;
I look forward to your results.
Hello Mikhail,
no, we are using plain TdxTabbedMDIClientControl.
I will apply your patch and try again to reproduce that List Index bug.
Thanks
OK, we are waiting for your response.
I implemented that patch and as of now I was unable to produce this exception again.
It seems like that patch solved the problem.
Thank you for the clarification. We will discuss this with our developers.