Page 1 of 1

Access violation from TOCIConnection

Posted: Mon 03 Jan 2022 21:15
by jdorlon
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]