Subject Re: [IBO] Starttransaction/Commit
Author Jason Wharton
I think I will have this fixed now.
What it seems to be due to is the horizontal refinement stuff.
It is getting a hold of an invalid pointer because it is shifting its
context and reallocating records again.

I think I already fixed this problem as it is manifesting itself in
different areas.

Regards,
Jason Wharton
CPS - Mesa AZ
http://www.ibobjects.com


----- Original Message -----
From: "Stefan Rausch" <st.rausch@...>
To: <IBObjects@yahoogroups.com>
Sent: Tuesday, August 21, 2001 8:55 AM
Subject: [IBO] Starttransaction/Commit


> Hi,
>
>
> I'm still trying to convert an Application from BDE to Interbase/IBO.
>
> I have some Problems with TIBODatabase.StartTransaction/Commit.
> D5Ent, IB6, IBO4.2 Eb
> There is no Problem with that in IBO 3.6.
>
>
> I made a small Test-App with a single Form and put 1 TIBODatabase
> and 2 TIBOTables on it
> * 2 different physical tables
> * no relation between the tables
> * both Tables have a 3-field-primary-key
>
> If I click the button for the _first_ time after the start of the
> application:
> procedure TForm1.FormCreate(Sender: TObject);
> begin
> IBODatabase1.username := '...';
> IBODatabase1.password := '...';
> IBODatabase1.Open;
> TAB1.Open;
> TAB2.Open;
> end;
> procedure TForm1.Button1Click(Sender: TObject);
> begin
> TAB2.Next;
> IBODatabase1.StartTransaction; file://just a
> IBODatabase1.Commit; file://sample...
> end;
> I get an access violation in BinaryToHexText (ABuffer = nil);
>
> The Stack is:
> TIB_Database.Commit
> TIB_Transaction.Commit
> TIB_Transaction.SysCommit
> TIB_Transaction.SysCommitEnd
> TIB_Transaction.SysProcessCommitAction
> TIB_Dataset.RefreshKeys
> TIBOInternalDataset.SysRefresh
> TIBODataset.GetBookmarkStr -- TAB1
> BinaryToHexText
> Whether the error occurs, depends on the order, the tables are opened.
> If I open TAB2 first and do TAB1.Next, then the error occurs in
> TAB2.GetBookmarkStr ...
>
>
> Stefan Rausch
>
>
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>