Ticket Q455115
Visible to All Users

Access Violation in DBTableView

created 12 years ago

Hello,

I am frequently using .DisableControls and do some action and then .EnableControls

Sinds I ported tot v2012 vol 2 I get sometimes access violations.

Eurekalog gives the following error

2.1 Date : Thu, 3 Jan 2013 15:37:52 +0100
2.2 Address : 00814B13
2.3 Module Name : pRelatie.exe
2.4 Module Version: 2012.1.1.23
2.5 Type : EAccessViolation
2.6 Message : Access violation at address 00814B13 in module
'pRelatie.exe'. Read of address 4A8B0440.
2.7 ID : D6C3
2.8 Count : 1
2.9 Status : New
2.10 Note :

|00814B13|pRelatie.exe|cxNavigator.pas |TcxNavigatorButton
|GetInternalEnabled |853[3] |
|00814B00|pRelatie.exe|cxNavigator.pas |TcxNavigatorButton
|GetInternalEnabled |850[0] |
|00816826|pRelatie.exe|cxNavigator.pas |TcxNavigatorViewInfo
|UpdateButtonsEnabled |1883[3] |
|00816800|pRelatie.exe|cxNavigator.pas |TcxNavigatorViewInfo
|UpdateButtonsEnabled |1880[0] |
|008167F7|pRelatie.exe|cxNavigator.pas |TcxNavigatorViewInfo
|Update |1874[2] |
|008167E8|pRelatie.exe|cxNavigator.pas |TcxNavigatorViewInfo
|Update |1872[0] |
|008CE3C9|pRelatie.exe|cxGridCustomTableView.pas
|TcxCustomGridTableItemOptions|Assign |20335[23]|
|008CE3C0|pRelatie.exe|cxGridCustomTableView.pas
|TcxCustomGridTableItemOptions|Assign |20335[23]|
|008CE74E|pRelatie.exe|cxGridCustomTableView.pas
|TcxCustomGridTableItemOptions|Assign |20335[23]|
|008CE748|pRelatie.exe|cxGridCustomTableView.pas
|TcxCustomGridTableItemOptions|Assign |20335[23]|
|008B7297|pRelatie.exe|cxGridCustomTableView.pas
|TcxCustomGridTableController |GetFocusedRecord |15694[3] |
|008B7274|pRelatie.exe|cxGridCustomTableView.pas
|TcxCustomGridTableController |GetFocusedRecord |15693[2] |
|008B6752|pRelatie.exe|cxGridCustomTableView.pas
|TcxCustomGridTableController |SetInternalTopRecordIndex|15294[24]|
|006EF8F7|pRelatie.exe|cxCustomData.pas |TcxCustomDataController
|UpdateControl |10215[1] |
|006EE096|pRelatie.exe|cxCustomData.pas |TcxCustomDataController
|NotifyControl |9265[3] |
|006EE06C|pRelatie.exe|cxCustomData.pas |TcxCustomDataController
|NotifyControl |9262[0] |
|006F0D6C|pRelatie.exe|cxCustomData.pas |TcxCustomDataController
|FocusedNotification |10968[2] |
|006F0D2C|pRelatie.exe|cxCustomData.pas |TcxCustomDataController
|FocusedNotification |10966[0] |
|006F0B56|pRelatie.exe|cxCustomData.pas |TcxCustomDataController
|Update |10900[12]|
|006F0B00|pRelatie.exe|cxCustomData.pas |TcxCustomDataController
|Update |10888[0] |
|006ED94C|pRelatie.exe|cxCustomData.pas |TcxCustomDataController
|CheckChanges |9026[11] |
|006ED904|pRelatie.exe|cxCustomData.pas |TcxCustomDataController
|CheckChanges |9015[0] |
|006ED975|pRelatie.exe|cxCustomData.pas |TcxCustomDataController
|Change |9034[2] |
|006ED95C|pRelatie.exe|cxCustomData.pas |TcxCustomDataController
|Change |9032[0] |
|006F59F7|pRelatie.exe|cxCustomData.pas
|TcxCustomDataControllerInfo |ForwardChanges |13565[21]|
|006F5910|pRelatie.exe|cxCustomData.pas
|TcxCustomDataControllerInfo |ForwardChanges |13544[0] |
|006F66AD|pRelatie.exe|cxCustomData.pas
|TcxCustomDataControllerInfo |Update |13890[22]|
|006F3405|pRelatie.exe|cxCustomData.pas
|TcxCustomDataControllerInfo |CheckChanges |12576[2] |
|006F33E8|pRelatie.exe|cxCustomData.pas
|TcxCustomDataControllerInfo |CheckChanges |12574[0] |
|006F33DE|pRelatie.exe|cxCustomData.pas
|TcxCustomDataControllerInfo |EndUpdate |12570[2] |
|006F33D8|pRelatie.exe|cxCustomData.pas
|TcxCustomDataControllerInfo |EndUpdate |12568[0] |
|006EA315|pRelatie.exe|cxCustomData.pas |TcxCustomDataController
|EndUpdate |6976[1] |
|006EA30C|pRelatie.exe|cxCustomData.pas |TcxCustomDataController
|EndUpdate |6975[0] |
|007648FA|pRelatie.exe|cxDBData.pas |TcxDBDataController
|UpdateFocused |5265[7] |
|006EF8AB|pRelatie.exe|cxCustomData.pas |TcxCustomDataController
|DataScrolled |10193[1] |
|006E4D84|pRelatie.exe|cxCustomData.pas |TcxCustomDataProvider
|DataScrolled |3929[1] |
|006E4D78|pRelatie.exe|cxCustomData.pas |TcxCustomDataProvider
|DataScrolled |3928[0] |
|0075F9E6|pRelatie.exe|cxDBData.pas |TcxDBDataProvider
|DataScrolled |2801[16] |
|0075D341|pRelatie.exe|cxDBData.pas |TcxDBDataLink
|DataSetScrolled |1633[1] |
|0075D0A2|pRelatie.exe|cxDBData.pas |TcxDBDataLink
|DataEvent |1553[1] |
|00BADC76|pRelatie.exe|UZOEKENALGEMEEN.pas |TfZoekenAlgemeen

When I use .BeginUpdate(lsimPending) and .EndUpdate of de grid the problem is solved., but that means al lot lot of coding.

Can you helpme to find a solution ?

Gert Hoogeboom

Comments (3)
DevExpress Support Team 12 years ago

    I am afraid this information is not enough to answer you precisely why this happens. Would you please provide us with a sample project to demonstrate the issue and more detailed information about the functionality you are trying to implement? We will examine it and do our best to find a solution.

      Hello Mikhail,
      That is a bit the problem, mostly it works perfekt but sometimes i get this error messages. I hoped that you could see anything in the bugreport. I don't think i can manage to reproduce it in a demo application.
      I seems to me that it has to do with buttons of the grid that arent there anymore ?

      DevExpress Support Team 12 years ago

        Hello,
        Thank you for your reply. Although it is difficult to say why this happens without examining a sample project, I think that the issue may be related to the changed DisableControls/EnableControls behavior in XE2 Update 4 (see the http://qc.embarcadero.com/wc/qcmain.aspx?d=106592 bug report).
        You can try to execute the following steps to isolate the problem. Please reset all event handlers in your application. If the problem is gone, set them back one by one, and see when the problem returns. If this does not help you, try to remove all controls one by one, and test your sample at each step, until the problem is gone. As a result, you will have a small sample, illustrating the problem.

        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.