Bug Report T947251
Visible to All Users

TcxBarEditItem - The "List index out of bounds" exception occurs when changing the DPI value while the in-place editor is focused

created 4 years ago

A DropDownEdit used as an TcxBarEditItem causes an EInvalidIndex when a DPI-Change occurs.

  1. Please run the attached test-case
  2. Drop down the shell combo box bar item
  3. While the drop down bar item is still focused, cause a DPI-Change (in my case, I pressed Win+Left to move the form to a monitor with different DPI settings)
  4. EInvalidImageIndex occurs with the following call stack:
Delphi
:76d79ab2 KERNELBASE.RaiseException + 0x62 System.Classes.TList.Get(5) :00471d54 TList.Get + $1C System.Classes.TList.Get(???) Vcl.Controls.TWinControl.GetControl(???) Vcl.Controls.TWinControl.ScaleControlsForDpi(168) dxForms.TdxForm.ScaleControlsForDpi(168) Vcl.Forms.TCustomForm.ScaleForPPIRect(168,???) Vcl.Forms.TCustomForm.WMDpiChanged((736, (), 168, 168, (), $19FE34, 0)) dxForms.TdxForm.WMDPIChanged((736, 11010216, 1703476, 0, 168, 168, (), 65076, 25, (), 0, 0, ()))
Comments (1)
DevExpress Support Team 4 years ago

    Hello Sebastian,

    Thank you for sharing your sample project. It may take us some time to examine this scenario.

    Answers approved by DevExpress Support

    created 4 years ago

    We have addressed the issue described in this ticket and will include a fix in our next maintenance update. To apply this solution before official release, request a hotfix by clicking the appropriate version link.

    Note: Hotfixes may be unavailable for betas/updates set for release within a week.

      Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

      Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.