Bug Report Q471656
Visible to All Users

An AV occasionally occurs when modifying Screen.Cursor if the grid is currently locked for updates (for instance, via the BeginUpdate/EndUpdate method block)

created 12 years ago

I have found a regression error within the cxGrid. It appeared from v12.2.2. Until v12.1.7 the code was just fine.

I have nailed it down and created a demo app to reproduce the error. See the attached source code. I have also included exe files, one compiled with DevEx12.2.3 which shows the error and one compiled with DevEx 12.1.7 which is just fine.

In order to reproduce the error, press the button on top and move the mouse within the client area.

In order for the error to happen…
… the cursor change must be within the Grid.BeginUpdate/Grid.EndUpdate OR
… the grid must have at least two bands created OR
… the show/hide of the containers must be before the "build" grid sequence

I hope that helps to fix it.

Best regards,
Christian

Comments (1)
DevExpress Support Team 12 years ago

    We are working on your request, but it can take us some time to examine it. We will get back to you once we have any results or need additional information. Thank you for your patience.

    Answers approved by DevExpress Support

    created 12 years ago (modified 12 years ago)

    Hello,
    Thank you for your message. I have reproduced this behavior. I am forwarding this issue to our developers for further processing. You will receive an automatic message once the status of this issue is changed.
    If you use TableView's BeginUpdate/EndUpdate methods instead Grid's methods, your processes will be faster (also it locks Grid).
    The TableView.BeginUpdate method additionally locks the DataController of this view, so you will get acceleration.

      Comments (1)

        Mikhail,
        Thank you for that (BeginUpdate/EndUpdate) hint. I will incorporate it in the production code.

        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.