Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Mar : Re: Anyone got problems using idMappedPortTCP
| Subject: | Re: Anyone got problems using idMappedPortTCP |
| Posted by: | "loris luise" (lorislui..@iol.it) |
| Date: | Thu, 15 Mar 2007 22:22:48 |
I have a simple program "mapper" in Delphi7/Indy10.1.6 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.
Remy Lebeau (TeamB) wrote:
> "loris luise" <lorisluise@iol.it> wrote in message
> news:45f7b006@newsgroups.borland.com...
>
>> i have big problems using Indy 10 IdMappedPortTCP component
>> in my application.
>
> Please be more specific.
>
>> Simply put, communications are randomly freezing, while
>> application is still working.
>
> That is not helpful information. You have not specified which build
> of Indy 10 you are using. You have not shown any code you are using.
> You have not described what kind of data is being exchanged. There is
> no way to diagnose your problem without more information.
>
>
> Gambit
none