Subject | Re: [IBO] AV when RollBack is called |
---|---|
Author | Jason Wharton |
Post date | 2001-10-06T16:10:12Z |
The callstack on the exception would be a good place to start looking.
Jason Wharton
CPS - Mesa AZ
http://www.ibobjects.com
Jason Wharton
CPS - Mesa AZ
http://www.ibobjects.com
----- Original Message -----
From: "Carlos H. Cantu" <ibo@...>
To: "Jason Wharton" <jwharton@...>
Cc: <ibobjects@yahoogroups.com>
Sent: Saturday, October 06, 2001 7:09 AM
Subject: [IBO] AV when RollBack is called
> I have an app with explicit transaction control.
>
> If I do :
>
> 1)StartTransaction
> TRY
> 2)Try to edit a record in a TIBOQuery, but in the beforeedit event I
raise an
> exception with SysUtils.Abort
> EXCEPT
> 3)RollBack the transaction
> END
>
> everything is OK
>
> BUT if I do
>
> 1)StartTransaction
> TRY
> 2)Try to edit a record in a table, but in the beforeedit event I raise
an
> exception with raise Exception.Create('You cannot edit this record')
> EXCEPT
> 3)RollBack the transaction <= Access Violation here !!!
> END
>
> It gives an AV in (3).
>
> Any idea on what is going on here ?
>
> Carlos
> WarmBoot Informatica - http://www.warmboot.com.br
> Interbase-BR - http://www.interbase-br.com