Access violation from TOCIConnection

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
jdorlon
Posts: 202
Joined: Fri 05 Jan 2007 22:07

Access violation from TOCIConnection

Post by jdorlon » Mon 03 Jan 2022 21:15

Hello,

I have seen this error a lot lately in our application error logs. I am unable to reproduce it and haven't heard any customer complain about it, but I know that it is happening more often than I'd like it to. Do you have any idea of how this might happen? It looks like TOCIConnection.OCISvcCtx becomes nil when we try to execute a query

The call stack is below.

Thanks and Happy New Year.

Code: Select all

Message:     Access violation at address 0000000005AF6F8B in module 'Toad.exe'. Read of address 0000000000000020
--------------------------------------------------------------------------------------------
|Unit           |Class                       |Procedure/Method               |Line
--------------------------------------------------------------------------------------------
|OraClasses     |TOCIConnection              |GetOCI8                        |3864[1]
|KERNELBASE     |                            | (possible GetLastError+131)   |
|System         |                            |_RaiseAtExcept                 |
|System         |                            |_RaiseAgain                    |
|OraClasses     |TOCICommand                 |InternalExecute                |8959[92]
|OraClasses     |TOCICommand                 |Exec                           |9213[61]
|OraClasses     |TOCICommand                 |DoExecute                      |11590[8]
|OraClasses     |TOCICommand                 |Execute                        |11627[19]
|CRAccess       |TCRRecordSet                |ExecCommand                    |4073[4]
|OraClasses     |TOCIRecordSet               |ExecCommand                    |13132[7]
|DBAccess       |TCustomDADataSet            |InternalExecute                |8801[1]
|Ora            |TOraDataSet                 |InternalExecute                |7628[2]
|DBAccess       |TCustomDADataSet            |Execute                        |8910[52]
|DBAccess       |TCustomDADataSet            |Execute                        |8848[1]
|tdSmartQuery   |TToadSmartQuery             |Execute                        |1537[128]
|Queries        |                            |ObjectExists                   |666[299]

Post Reply