Subject | RE: [firebird-support] Re: Client in FireBird |
---|---|
Author | Gustavo |
Post date | 2005-06-21T02:27:23Z |
Adam:
Thank you very much for your answer.
I renamed fbclient.dll to gds32.dll and now the application starts OK in PC2 and connects OK to database in PC1:DataBaseAlias1.
Now I have another problem. When it starts, the application creates a local temporary database in Windows Temp directory. This is done with an IBX TIBDataBase component with C:\Windows\Temp\TempDataBase0.FDB in its DataBaseName property and using the method CreateDataBase. In PC1 (the server) this works fine (obviously using the right Windows Temp directory) but in PC2 (the client with Windows 98), the CreateDataBase fails and gets the message "unavailable database".
Do you (or someone else) know what's the reason and how can I solve it?
Gustavo
Thank you very much for your answer.
I renamed fbclient.dll to gds32.dll and now the application starts OK in PC2 and connects OK to database in PC1:DataBaseAlias1.
Now I have another problem. When it starts, the application creates a local temporary database in Windows Temp directory. This is done with an IBX TIBDataBase component with C:\Windows\Temp\TempDataBase0.FDB in its DataBaseName property and using the method CreateDataBase. In PC1 (the server) this works fine (obviously using the right Windows Temp directory) but in PC2 (the client with Windows 98), the CreateDataBase fails and gets the message "unavailable database".
Do you (or someone else) know what's the reason and how can I solve it?
Gustavo
--- In firebird-support@yahoogroups.com, "Gustavo" <gusm@d...> wrote:
> Hello:
>
> I'm developping my first application in FireBird and I'm trying
to make it work in a multiuser enviroment. I have 2 PCs in a LAN. In
PC1 I have Windows XP and FireBird server installed. I really don't
know if it is Super Server or Classic Server because I installed it
several months ago running "Firebird-1.5.1.4481-Win32.exe" and I
don't remember which one I choose. (¿How can I know this? ¿Which is
the diference?)
It may be easier at this stage to uninstall the version you have and
install 1.5.2. Classic will create a process for every connection,
superserver will have a single process regardless of the number of
connections.
>
> I developped my application in PC1 and it works fine. Now I
want to use PC2, which has Windows 98, as a client. I copied my
applicaction in a folder and in the same folder I copied
fbclient.dll. When my application starts and tries to connect to the
database it fails. I'm using IBX component TIBDataBase with property
DataBaseName set to PC1:DataBaseAlias1. In PC1, in the file
firebird.conf, there is a line DataBaseAlias1 =
C:\MyFolder\MyDataBase.fdb.
Rename fbclient.dll to gds32.dll. IBX expects it to be called that.
Part of the FB installer can optionally create a gds32.dll into the
system directory which is probably why your server machine works fine.
>
> I opened telnet in PC2 and connected with PC1, port 3050, and
it works.
good, the service is running and no firewall is blocking it.
>
> When I run the application in PC1 it works but when I run the
application in PC2 I get the following error message:
> Unable to complete network request to host "PC1".
> Failed to locate host machine.
> Undefined service gds_db/tcp
>
> I never installed FireBird in PC2. I only copied my application
and fbclient.dll in the same folder because I supposed this was the
only thing I had to do. Evidently I'm wrong.
>
> ¿Do I have to run Firebird-1.5.1.4481-Win32.exe in PC2 and
choose "Minimum client install - no server, no tools"? ¿Do I have to
do another thing?
Nope, a rename should fix this.
Adam
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Visit http://firebird.sourceforge.net and click the Resources item
on the main (top) menu. Try Knowledgebase and FAQ links !
Also search the knowledgebases at http://www.ibphoenix.com
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
------------------------------------------------------------------------------
Yahoo! Groups Links
a.. To visit your group on the web, go to:
http://groups.yahoo.com/group/firebird-support/
b.. To unsubscribe from this group, send an email to:
firebird-support-unsubscribe@yahoogroups.com
c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[Non-text portions of this message have been removed]