Subject Re: [ib-support] Questions about Firebird's API
Author C R Zamana
On Wed, 2002-03-13 at 16:25, Ann W. Harrison wrote:
> At 03:48 PM 3/13/2002 -0300, C R Zamana wrote:
>
>
> >1) What is the correct sequence to finish a transaction using
> >the functions below?
> >
> >isc_dsql_free_statment()
> >isc_commit_transaction()/isc_rollback_transaction()
>
> That rather depends on whether you want to commit or
> undo your changes. If nothing has changed, commit is
> preferred.

That's ok about commit or rollback. What I'm asking
is about the "call sequence" regards to the functions
isc_dsql_free_statment() and isc_commit_transaction(),
for example. Which is the correct sequence?

I'm asking because I'm in trouble with memory
leaking problems. Anyway, after some tests, it seems that
the problem is in the "prepare" section of my process, e.g.,
when I need to allocate the XSQLDA structure.

Thank you.
Best regards.