Subject Re: Determining the Root_Directory
Author Lee
--- In firebird-support@yahoogroups.com, Helen Borrie <helebor@...> wrote:

> If you were using Delphi, you wouldn't be able to run an app that
> connects to the embedded server from inside the IDE. The reason for
> this is that the Delphi IDE makes its own connection to the database
> in design-time. If its connection is via a Windows embedded server
> process (which is Superserver) then that process -- owned by the
> Delphi IDE -- has the read-write lock on the database file. That
> blocks any other server instance from making a connection. It is
> designed that way deliberately. When you hit the Run button, the
> project executable is compiled and run but the connection to the
> database will fail.

Note that this is true only if you are viewing live data at
design-time. In general, it is often good practice to add some code to
manually connect to the database that is called after the app fires
up, and disconnect before you compile/build and run. Incidentally, I'm
doing exactly this with the embedded server now, and I'm having no
problems.

I'm not familiar with PB, but I'd guess you can do the same.

Lee