Exception in releaseimmediate
Posted: 22.10.2022, 09:35
With last commit in 8.0-fixes trunk I seldom get this Exception Error Stack:
Exception: 20221022 07071001 + EXC EListError {Message:"List index out of bounds (4)"} [] at 3f2c98 System.Classes.pas TList.Get (5109) System.Classes.pas TList.Get (5109) System.Classes.pas TList.Get (5109) ZDbcConnection.pas TZAbstractSingleTxnConnection.ReleaseImmediat (2245) ZDbcMySql.pas TZMySQLConnection.ReleaseImmediat (928) ZDbcStatement.pas TZAbstractStatement.ReleaseImmediat (1680) ZDbcStatement.pas TZAbstractPreparedStatement.ReleaseImmediat (3861) ZDbcMySqlStatement.pas TZAbstractMySQLPreparedStatement.ReleaseImmediat (948) ZDbcConnection.pas TZAbstractDbcConnection.ReleaseImmediat (1192) ZDbcConnection.pas TZAbstractSingleTxnConnection.ReleaseImmediat (2245) ZDbcMySql.pas TZMySQLConnection.ReleaseImmediat (928) ZDbcStatement.pas TZAbstractStatement.ReleaseImmediat (1680) ZDbcStatement.pas TZAbstractPreparedStatement.ReleaseImmediat (3861) ZDbcMySqlStatement.pas TZAbstractMySQLPreparedStatement.ReleaseImmediat (948) ZDbcConnection.pas TZAbstractDbcConnection.ReleaseImmediat (1192) ZDbcConnection.pas TZAbstractSingleTxnConnection.ReleaseImmediat (2245) ZDbcMySql.pas TZMySQLConnection.ReleaseImmediat (928) ZDbcStatement.pas TZAbstractStatement.ReleaseImmediat (1680) ZDbcStatement.pas TZAbstractPreparedStatement.ReleaseImmediat (3861) ZDbcMySqlStatement.pas TZAbstractMySQLPreparedStatement.ReleaseImmediat (948) ZDbcConnection.pas TZAbstractDbcConnection.ReleaseImmediat (1192) ZDbcConnection.pas TZAbstractSingleTxnConnection.ReleaseImmediat (2245) ZDbcMySql.pas TZMySQLConnection.ReleaseImmediat (928) ZDbcStatement.pas TZAbstractStatement.ReleaseImmediat (1680) ZDbcStatement.pas TZAbstractPreparedStatement.ReleaseImmediat (3861) ZDbcMySqlStatement.pas TZAbstractMySQLPreparedStatement.ReleaseImmediat (948)
The ZDbcConnection.pas TZAbstractSingleTxnConnection.ReleaseImmediat (2245) si:
Exception: 20221022 07071001 + EXC EListError {Message:"List index out of bounds (4)"} [] at 3f2c98 System.Classes.pas TList.Get (5109) System.Classes.pas TList.Get (5109) System.Classes.pas TList.Get (5109) ZDbcConnection.pas TZAbstractSingleTxnConnection.ReleaseImmediat (2245) ZDbcMySql.pas TZMySQLConnection.ReleaseImmediat (928) ZDbcStatement.pas TZAbstractStatement.ReleaseImmediat (1680) ZDbcStatement.pas TZAbstractPreparedStatement.ReleaseImmediat (3861) ZDbcMySqlStatement.pas TZAbstractMySQLPreparedStatement.ReleaseImmediat (948) ZDbcConnection.pas TZAbstractDbcConnection.ReleaseImmediat (1192) ZDbcConnection.pas TZAbstractSingleTxnConnection.ReleaseImmediat (2245) ZDbcMySql.pas TZMySQLConnection.ReleaseImmediat (928) ZDbcStatement.pas TZAbstractStatement.ReleaseImmediat (1680) ZDbcStatement.pas TZAbstractPreparedStatement.ReleaseImmediat (3861) ZDbcMySqlStatement.pas TZAbstractMySQLPreparedStatement.ReleaseImmediat (948) ZDbcConnection.pas TZAbstractDbcConnection.ReleaseImmediat (1192) ZDbcConnection.pas TZAbstractSingleTxnConnection.ReleaseImmediat (2245) ZDbcMySql.pas TZMySQLConnection.ReleaseImmediat (928) ZDbcStatement.pas TZAbstractStatement.ReleaseImmediat (1680) ZDbcStatement.pas TZAbstractPreparedStatement.ReleaseImmediat (3861) ZDbcMySqlStatement.pas TZAbstractMySQLPreparedStatement.ReleaseImmediat (948) ZDbcConnection.pas TZAbstractDbcConnection.ReleaseImmediat (1192) ZDbcConnection.pas TZAbstractSingleTxnConnection.ReleaseImmediat (2245) ZDbcMySql.pas TZMySQLConnection.ReleaseImmediat (928) ZDbcStatement.pas TZAbstractStatement.ReleaseImmediat (1680) ZDbcStatement.pas TZAbstractPreparedStatement.ReleaseImmediat (3861) ZDbcMySqlStatement.pas TZAbstractMySQLPreparedStatement.ReleaseImmediat (948)
The ZDbcConnection.pas TZAbstractSingleTxnConnection.ReleaseImmediat (2245) si:
Code: Select all
if (fActiveTransaction <> nil) and (fActiveTransaction.QueryInterface(IImmediatelyReleasable, imm) = S_OK) and (imm <> Sender) then begin
imm.ReleaseImmediat(Sender, AError);