Subject Re: [IBO] CreateDatabase() causing AV
Author Sampo Ahokas
Helen,

> I just threw together a little test app similar to yours, but I put
> everything in the DFM so you can see what I did:

Thank you for the effort and confirming that it works there, I will try
the exact same app as soon as I can.

> - if IBO AVs because of the missing "transaction" component: it's a bug. It
> should raise an error message instead.

I tried with transaction component as well, it made no difference.

> e.g. if you were trying to access a server on Linux, does the
> firebird user (or group) have the needed permissions to create a file?

Yes, I am able to create databases on the server from other
applications (flamerobin, isql) and even from my own application after
the dll has been loaded by a call to another function.

> Does IBO know where to find your client? Or, to put it another way,
> is there a correctly-named client in a place where IBO can find it...

Yes, it is located in application .exe directory, and for example call
to IB_Connection.Connect() causes the DLL to be loaded and it works
without errors. I have not tried with DLLs in system directory though.
Since other methods seemed to work ok with DLL in app directory, I
assumed it is not what is causing the problem.

> 2) If Embedded is all you have available, you won't be able to
> access a DB anywhere except locally, using cpLocal for protocol, and
> fbEmbed.dll has to be renamed to fbclient.dll and located in the same
> directory as your exe.

Actually fbembed.dll contains the client code as well and it can be
used to access both local and remote database. I have tried it myself,
and for reference:
http://groups.yahoo.com/group/firebird-support/message/70998
I have also tried the real fbclient.dll, but it made no difference.

In any case, there is something very strange going on, since so far
ONLY CreateDatabase() is causing errors. I remember reading on release
notes there were some changes to the client library selection between
IBO 4.5B and IBO 4.6A, and my version is a beta from between them.

Thanks for all the help for now, I will just try the suggestions in
latest post and if the problem still happens I'll wait until I can get
a the proper IBO 4.6A version and see if it helps.

-Sampo