PostgreSQL : EAccessViolation / Unexpected server response

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
swierzbicki
Posts: 451
Joined: Wed 19 Jan 2005 09:59

PostgreSQL : EAccessViolation / Unexpected server response

Post by swierzbicki » Wed 23 Apr 2014 08:52

Hello,

I don't know if this can be considered as a bug or not.
It appears that we can set Master/Details Relationship without setting the "DetailField".

In my case I'm getting :
- an EAccessViolation error
- fallowed by an UniDAC error "Unexpected server response /J"
- fallowed by a "final" EAccessViolation error

Here is the call stakc (that could help you ?) :

Code: Select all

main thread ($1228):
00d4837e +01a myCRM.exe    PgClassesUni                  TPgSQLRecordSet.ReceiveFetchBuffer
00d23944 +04c myCRM.exe    PgSQLProtocolUni              TPgSQLProtocol30.FetchRow
00d1f49d +0b5 myCRM.exe    PgSQLProtocolUni              TPgSQLProtocol.FetchStmt
00d4875e +0d6 myCRM.exe    PgClassesUni                  TPgSQLRecordSet.InternalFetch
00d4822d +0a5 myCRM.exe    PgClassesUni                  TPgSQLRecordSet.Fetch
00d4671e +05e myCRM.exe    PgClassesUni                  TPgSQLRecordSet.FetchAll
00c264d9 +051 myCRM.exe    CRAccess                      TCRRecordSet.ExecFetch
00c24745 +19d myCRM.exe    CRAccess                      TCRRecordSet.InternalOpen
00d48135 +005 myCRM.exe    PgClassesUni                  TPgSQLRecordSet.InternalOpen
00d46a3b +047 myCRM.exe    PgClassesUni                  TPgSQLRecordSet.Reopen
00c4aec0 +044 myCRM.exe    DBAccess                      TCustomDADataSet.DataReopen
00c4d3f4 +18c myCRM.exe    DBAccess                      TCustomDADataSet.RefreshDetail
00bac359 +06d myCRM.exe    MemDS                         TMemDataSet.MasterRecordChanged
00ba62e1 +05d myCRM.exe    MemDS                         TDADetailDataLink.RecordChanged
00982ba4 +004 myCRM.exe    Data.DB                       TDataLink.DataSetChanged
00982b5d +0bd myCRM.exe    Data.DB                       TDataLink.DataEvent
009830ef +043 myCRM.exe    Data.DB                       TDataSource.NotifyLinkTypes
00983115 +011 myCRM.exe    Data.DB                       TDataSource.NotifyDataLinks
0098314f +023 myCRM.exe    Data.DB                       TDataSource.DataEvent
0098a2cc +170 myCRM.exe    Data.DB                       TDataSet.DataEvent
00baf194 +020 myCRM.exe    MemDS                         TMemDataSet.DataEvent
00c4fe92 +00a myCRM.exe    DBAccess                      TCustomDADataSet.DataEvent
0098aa3d +18d myCRM.exe    Data.DB                       TDataSet.Resync
00c4bd08 +018 myCRM.exe    DBAccess                      TCustomDADataSet.Resync
00bae036 +03e myCRM.exe    MemDS                         TMemDataSet.Locate
00c8a2f6 +0de myCRM.exe    cxDBData                      TcxDBDataController.TryFocusRecord
00c87a58 +0d8 myCRM.exe    cxDBData                      TcxDBDataController.CanFocusRecord
009c81b6 +03e myCRM.exe    cxCustomData                  TcxCustomDataControllerInfo.CanFocusedRowChanging
009c89aa +07a myCRM.exe    cxCustomData                  TcxCustomDataControllerInfo.DoChangeFocusedRow
009ca331 +02d myCRM.exe    cxCustomData                  TcxCustomDataControllerInfo.SetFocusedRowIndex
009cee10 +07c myCRM.exe    cxCustomData                  TcxCustomDataController.ChangeFocusedRowIndex
00b33aa5 +071 myCRM.exe    cxGridCustomTableView         TcxCustomGridTableController.SetFocusedRecordIndex
00b34f74 +010 myCRM.exe    cxGridCustomTableView         TcxCustomGridTableController.SetFocusedRecord
00cad140 +148 myCRM.exe    cxGridTableView               TcxGridTableController.SetFocusedRecord
00b4a025 +04d myCRM.exe    cxGridCustomTableView         TcxCustomGridRecordViewInfo.Click
00cb5203 +027 myCRM.exe    cxGridTableView               TcxCustomGridRowViewInfo.Click
007a981d +005 myCRM.exe    cxControls                    TcxControl.GetIsFocused
00b4a1f7 +097 myCRM.exe    cxGridCustomTableView         TcxCustomGridRecordViewInfo.MouseDown
00b4848d +061 myCRM.exe    cxGridCustomTableView         TcxGridTableCellViewInfo.MouseDown
00b49856 +132 myCRM.exe    cxGridCustomTableView         TcxGridTableDataCellViewInfo.MouseDown
00b68388 +048 myCRM.exe    cxGridCustomView              TcxCustomGridController.MouseDown
00b36e80 +074 myCRM.exe    cxGridCustomTableView         TcxCustomGridTableController.MouseDown
00b69604 +048 myCRM.exe    cxGridCustomView              TcxGridSite.BeforeMouseDown
007a8094 +160 myCRM.exe    cxControls                    TcxControl.MouseDown
00b69ffd +025 myCRM.exe    cxGridCustomView              TcxGridSite.MouseDown
005c73cc +08c myCRM.exe    Vcl.Controls                  TControl.DoMouseDown
005c741b +03f myCRM.exe    Vcl.Controls                  TControl.WMLButtonDown
005c6d89 +2bd myCRM.exe    Vcl.Controls                  TControl.WndProc
00548c44 +014 myCRM.exe    System.Classes                StdWndProc
00409a6d +01d myCRM.exe    System                808  +0 @AfterConstruction
004aff3d +019 myCRM.exe    madExcept                     InterceptClassDestroy
007b4944 +024 myCRM.exe    cxClasses                     TcxObjectLinkController.Destroy
004093c8 +008 myCRM.exe    System                808  +0 TObject.Free
0045e34c +008 myCRM.exe    System.SysUtils               FreeAndNil
007b4a04 +014 myCRM.exe    cxClasses                     ReleaseObjectLinkControllerRefCount
007b4a3c +010 myCRM.exe    cxClasses                     cxRemoveObjectLink
007a9c9f +017 myCRM.exe    cxControls                    TcxControl.IsSizeGripArea
00409a6d +01d myCRM.exe    System                808  +0 @AfterConstruction
005caeec +02c myCRM.exe    Vcl.Controls                  TWinControl.MainWndProc
00548c44 +014 myCRM.exe    System.Classes                StdWndProc
76ffcc6b +00a USER32.dll                                 DispatchMessageW
006be647 +0f3 myCRM.exe    Vcl.Forms                     TApplication.ProcessMessage
006be68a +00a myCRM.exe    Vcl.Forms                     TApplication.HandleMessage
006be9c5 +0c9 myCRM.exe    Vcl.Forms                     TApplication.Run
015939bc +16c myCRM.exe    myCRM                  80 +20 initialization
76d3ee1a +010 kernel32.dll                               BaseThreadInitThunk

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: PostgreSQL : EAccessViolation / Unexpected server response

Post by AlexP » Wed 23 Apr 2014 11:16

Hello,

We cannot reproduce the problem. Please send the scripts for creating all the used DB objects and a sample reproducing the problem to alexp*devart*com, also please specify the exact versions of the IDE, UniDAC and PostgreSQL.

swierzbicki
Posts: 451
Joined: Wed 19 Jan 2005 09:59

Re: PostgreSQL : EAccessViolation / Unexpected server response

Post by swierzbicki » Thu 22 May 2014 06:53

Hello Alex,

It appears that my problem is coming from DevExpress CxGrid.
I'm getting these errors when my uniQuery is linked to an cxGrid.
There isn't any issue when replacing the cxgrid with Devart's grid or VCL's grid !

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: PostgreSQL : EAccessViolation / Unexpected server response

Post by AlexP » Thu 22 May 2014 11:28

We don't check our products with 3rd-party components. Try contacting DevExpress developers concerning this issue.

Post Reply