Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Jul : TIdMappedPortTCP Indy 10.0.52
| Subject: | TIdMappedPortTCP Indy 10.0.52 |
| Posted by: | "PD" (pd@donotspam.tabulex.dk) |
| Date: | Tue, 18 Jul 2006 15:22:36 |
Is there a known problem with TIdMappedPortTCP?
I have a simple program "mapper" in Delphi2006/Win2003 with one (empty)
form. In the FormCreate I do this:
MPT := TIdMappedPortTCP.Create(self); //MPT has of course been declared
as TIdMappedPortTCP
MPT.MappedHost := '192.168.2.2'; // firebird database server
MPT.MappedPort := 3050;
MPT.DefaultPort := 3051;
MPT.Active := true;
I run the program. Then I connect to a firebird database through IBExpert
with connection string 127.0.0.1/3051, which should then map through to my
db-server. And it does. But arbitrarily, the connection "freezes". Sometimes
it freezes when the IBExpert retreaves indexes from the db, at other times
it freezes when I scroll down through a table where a "lot" of data will be
fetched from the server. When it freezes, I can easily start another
instance of IBExpert, connect to the same database through the mapper, I can
browse through the tables etc until it eventually freezes as well. When I
close the mapper, then the IBExpert immediately detects that it has lost the
connection to the database. It seems that IBExpert is waiting for the mapper
to deliver data, somehow.
I tried to copy all code to Delphi6/Indy9. It works perfectly well as
expected.
Any bright heads out there who have a clue about what is wrong?
Kind regards
Poul Dige