Subject possible bug with firebird2/isc_version (??)
Author jrmrenegade
I'm using the interbase 6.0 API to learn how to interface with
Firebird 2.0. I've got an issue with the isc_version function which
returns implementation and version information.

int isc_version(
isc_db_handle *db_handle,
isc_callback function_name,
void *user_arg);


The isc_version function invokes the callback function twice: once for
the database version, and a second time for the on-disk structure.
For me, this crashes on the second callback.

Tracing through the program, the callback function calls fine the
first time. Here's the output to prove it:

Firebird/x86/Windows NT (access method), version "WI-V2.0.0.12748
Firebird 2.0"

when the callback function exits to give control back to the
isc_version function, client library crashes. I've seen different
messages like unhandle exceptions and illegal access for fbclient.dll.

To verify it was nothing caused by the callback function, I comment
the entire body out. It still crashes.

Since the first callback is working, I don't believe that I'm doing
anything wrong. This looks like a bug to me.

Is there any known bug with the isc_version function? Is the FB2 API
different from the IB6 API for this function?