Subject Re: [IBO] catching excpetion in TIB_Connection.Connect
Author Ryan Nilsson-Harding
Hi Steve,

My problem is that when I have either type of login (default, or my
own) I cannot handle the exception.
In the onCreate event of my dataModule, I have the following code:

try
myConn.Connect;
except on e: EIB_ISCError do begin
//(pseudo-code) if e.error = file_not_found
createDB();
end;
end;

When I have loginPrompt=False, and the file is not found, createDB()
is called, but when I have LoginPrompt=True, createDB is NOT called,
as the exception is hadled elsewhere.
What I would like to know is where this exception is handled, and
why doesn't my exception block catch it.

Whats going on with LoginPrompt=True;??

--- In IBObjects@y..., "sdbeames" <s.beames@m...> wrote:
> Hi Ryan,
> can you programatically attempt to connect using a known login,
and
> based on the subsequent success or failure, disconnect, supply
your
> own login prompt and reconnect, OR handle the exception & create
the
> db?
>
> HTH,
> Steve