Subject Re: isc_attach_database(..) - Error not handled.
Author nitaligavino <Dan.Crea@apropos.com>
Hello Paul:

How are you allocating your DPB? Are you calling isc_expand_dpb(…)?
Is the connection string null terminated?

My initial guess would be that there might be a buffer overrun or
something that is causing the error. Is the length being given
correctly for the DPB?

If the file does not exist, the status vector is filled out
appropriately:

Sample vector output for file not found:

Description: I/O error for file "D:/Apropos/EIP_Database/eip.gdb"
Description: Error while trying to open file
Description: The system cannot find the file specified.

ISC_STATUS:
status_vector[0]1
status_vector[1]335544344
status_vector[2]2
status_vector[3]37028720
status_vector[4]2
status_vector[5]37028738
status_vector[6]1
status_vector[7]335544734
status_vector[8]5
status_vector[9]37028770
status_vector[10]0

Best regards,
Dan Crea

--- In ib-support@yahoogroups.com, "Paul Blacquiere"
<p_blacquiere@y...> wrote:
> Hi,
>
> I am trying to understand what is wrong with my implementation of
> isc_attach_database call. If I pass the function an incorrect
database name
> or the server is not running, instead of the function returning an
error
> code, it crashes with a windows application error.
>
> Any thoughts appreciated.
>
>
> PaulB.