Subject Re: [firebird-support] Embedded dll loading problem
Author Helen Borrie
At 02:11 AM 26/04/2006, you wrote:
>One of the other developers here is having trouble loading the
>fbembed.dll (renamed to fbclient.dll). This set up works for
>everyone else in the office. When he loads the library he gets the
>following:
>
> > LoadLibraryW("fbclient.dll") called from "TABLEAU.EXE" at address
> > 0x00458B29.
> > Loaded "FBCLIENT.DLL" at address 0x10000000. Successfully hooked
> > module.
> > Loaded "WS2_32.DLL" at address 0x71AB0000. Successfully hooked
> > module.
> > Loaded "WS2HELP.DLL" at address 0x71AA0000. Successfully hooked
> > module.
> > Loaded "MSVCP71.DLL" at address 0x7C080000. Successfully hooked
> > module.
> > Loaded "MPR.DLL" at address 0x71B20000. Successfully hooked module.
> > Unloaded "FBCLIENT.DLL" at address 0x10000000.
> > Unloaded "MPR.DLL" at address 0x71B20000.
> > Unloaded "MSVCP71.DLL" at address 0x7C080000.
> > Unloaded "WS2_32.DLL" at address 0x71AB0000.
> > Unloaded "WS2HELP.DLL" at address 0x71AA0000.
> > LoadLibraryW("fbclient.dll") returned NULL. Error: Access is denied
> > (5).
>
>He says his permissions are all normal and he has full access to the
>directory. The firebird.config file next to the .exe looks like this
>
> > RootDirectory = C:\home\beers\tableaudev\tableau-support\firebird
> > \redist\
>
>which is pointing at the correct libraries.
>
>Anyone have any ideas about waht is causing this?

It most likely means that the library is trying to connect to a
database (file) that is already opened by another
application. Embedded must have exclusive access to the database
file. Check whether he's using isql, or some other tool, or already
has an instance of your application running, or is running something
like SystemRestore or a backup at the time he's trying to connect.

Another possibility is that he's trying to invoke the embedded server
through a locally-running remote desktop client. That won't work either.

./heLen