Subject | Access violation during .Commit |
---|---|
Author | Stefan Rausch |
Post date | 2001-10-29T15:13:13Z |
Hi,
my StartTransaction/Commit-Problem doesn't seem to be solved with the new
IBO-Version.
The sample, I posted on 21. Aug., does not work, here is another example.
(Sorry for my late answer, I haven't worked on this project since august.)
I just updated to IBO 4.2 F (Delphi5).
I get an access violation during .Commit. I can reproduce this error
with the following lines (just a sample...):
The sample contains only the database, the table and a button.
IBODatabase1: TIBODatabase;
ADR1: TIBOTable;
...
IBODatabase1.AutoCommit := FALSE;
...
IBODatabase1.StartTransaction;
ADR1.First;
ADR1.Next;
ADR1.Edit;
ADR1.FieldByName('NAME').Text := '...';
ADR1.Post;
ADR1.Prior;
IBODatabase1.Commit; //<<<*** access violation
...
There is an access violation in IB_Utils.BinaryToHexText.
Sometimes ABuffer is nil, some other time not.
The Stack is:
BinaryToHexText(nil, 18)
TIBODataset.GetBookmarkStr
TIBOInternalDataset.SysRefresh(False, True)
TIB_Dataset.RefreshKeys
TIB_Transaction.SysProcessCommitAction(False, True, False, False)
TIB_Transaction.SysCommitEnd(False)
TIB_Transaction.SysCommit(False)
TIB_Transaction.Commit
TIB_Database.Commit
Thanks in advance
Stefan Rausch
my StartTransaction/Commit-Problem doesn't seem to be solved with the new
IBO-Version.
The sample, I posted on 21. Aug., does not work, here is another example.
(Sorry for my late answer, I haven't worked on this project since august.)
I just updated to IBO 4.2 F (Delphi5).
I get an access violation during .Commit. I can reproduce this error
with the following lines (just a sample...):
The sample contains only the database, the table and a button.
IBODatabase1: TIBODatabase;
ADR1: TIBOTable;
...
IBODatabase1.AutoCommit := FALSE;
...
IBODatabase1.StartTransaction;
ADR1.First;
ADR1.Next;
ADR1.Edit;
ADR1.FieldByName('NAME').Text := '...';
ADR1.Post;
ADR1.Prior;
IBODatabase1.Commit; //<<<*** access violation
...
There is an access violation in IB_Utils.BinaryToHexText.
Sometimes ABuffer is nil, some other time not.
The Stack is:
BinaryToHexText(nil, 18)
TIBODataset.GetBookmarkStr
TIBOInternalDataset.SysRefresh(False, True)
TIB_Dataset.RefreshKeys
TIB_Transaction.SysProcessCommitAction(False, True, False, False)
TIB_Transaction.SysCommitEnd(False)
TIB_Transaction.SysCommit(False)
TIB_Transaction.Commit
TIB_Database.Commit
Thanks in advance
Stefan Rausch