[twsocket] Strange SSL-components problem

2011-03-30 Thread Dimitris Botsis

Hi all,

I have a very strange problem with ICS.
I try to use ICS v7 (Oct/2010) fresh downloaded from you website 
(overbyte.be). I install it on Delphi 7.

All is OK when starting.
I have an empty form and drop 2 components on it :
- a Tsslhttpcli
- a TsslContext
I have already included the proper paths for ICS in the Delphi 
environment so when I build it's all OK and for SSL I use ssleay32.dll 
and libeay32.dll but due to problems of versions I have disabled SSL 
version checking from "OverbyteIcsSslDefs.inc".


After some builds of the same project, without having changed anything 
in the project, I get the error that
Tsslhttpcli and Tsscontext are "undeclared identifiers", although 
previously they were fine.

If I close and open Delphi and project again, problem is still the same.

The only way to correct it, is to delete all contents of Delphi/Vc32, 
copy there fresh files from the downloaded zip from Overbyte's website 
and rebuild again the "OverbyteIcsD7Run.dpk".
Then it starts working fine for some time tries until it stops with the 
same errors again after some builds.


This happens only with SSL components of ICS, with other components 
everything is OK. Even when the 2 components I refer to seem to be 
"undeclared identifiers" if I use another non-SSL component (before 
rebuilding-that solves temporarily the problem) all other work fine.


Please note that :
- I don't have any other problem with no other components installed
- When I manage to compile project correct, then executable file is fine 
for always. The problem appears only in the Delphi environment together 
with ICS, while in build process.


Thank you very much.
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Strange SSL-components problem

2011-03-30 Thread Arno Garrels
Hi,

at first you should get atest ICS source code and OpenSSL DLLs from
http://wiki.overbyte.be/wiki/index.php/ICS_Download

The problem with undeclared identifiers is easily solved by rebuilding
the project, a simple compile is not enough after changing the USE_SSL
directive.

-- 
Arno Garrels



Dimitris Botsis wrote:
> Hi all,
> 
> I have a very strange problem with ICS.
> I try to use ICS v7 (Oct/2010) fresh downloaded from you website
> (overbyte.be). I install it on Delphi 7.
> All is OK when starting.
> I have an empty form and drop 2 components on it :
> - a Tsslhttpcli
> - a TsslContext
> I have already included the proper paths for ICS in the Delphi
> environment so when I build it's all OK and for SSL I use ssleay32.dll
> and libeay32.dll but due to problems of versions I have disabled SSL
> version checking from "OverbyteIcsSslDefs.inc".
> 
> After some builds of the same project, without having changed anything
> in the project, I get the error that
> Tsslhttpcli and Tsscontext are "undeclared identifiers", although
> previously they were fine.
> If I close and open Delphi and project again, problem is still the
> same. 
> 
> The only way to correct it, is to delete all contents of Delphi/Vc32,
> copy there fresh files from the downloaded zip from Overbyte's website
> and rebuild again the "OverbyteIcsD7Run.dpk".
> Then it starts working fine for some time tries until it stops with
> the same errors again after some builds.
> 
> This happens only with SSL components of ICS, with other components
> everything is OK. Even when the 2 components I refer to seem to be
> "undeclared identifiers" if I use another non-SSL component (before
> rebuilding-that solves temporarily the problem) all other work fine.
> 
> Please note that :
> - I don't have any other problem with no other components installed
> - When I manage to compile project correct, then executable file is
> fine for always. The problem appears only in the Delphi environment
> together with ICS, while in build process.
> 
> Thank you very much.
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Strange SSL-components problem

2011-03-30 Thread Dimitris Botsis

Hi Arno, thank you for replying.

I rebuild the project every time the problem occurs.
I even uninstall the whole package and install it again.
First times it works fine without problems.
And then, starts reporting about "undeclared identifiers" of 
SSL-components. Only for SSL components.

It's the first time I see something like this.

On 30/3/2011 10:15 μμ, Arno Garrels wrote:

Hi,

at first you should get atest ICS source code and OpenSSL DLLs from
http://wiki.overbyte.be/wiki/index.php/ICS_Download

The problem with undeclared identifiers is easily solved by rebuilding
the project, a simple compile is not enough after changing the USE_SSL
directive.



--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Re: [twsocket] Strange SSL-components problem

2011-03-30 Thread Dimitris Botsis

Hi all,

I corrected the problem, thank you Arno and Francois for helping.
I did not have "USE_SSL" enabled but although it was not enabled, the 
first times the build was succesful with SSL support - I don't know why.

Anyway, now I have rebuilt the whole package with USE_SSL and it's fine.
Thank you once more.

On 30/3/2011 10:20 μμ, Dimitris Botsis wrote:

Hi Arno, thank you for replying.

I rebuild the project every time the problem occurs.
I even uninstall the whole package and install it again.
First times it works fine without problems.
And then, starts reporting about "undeclared identifiers" of
SSL-components. Only for SSL components.
It's the first time I see something like this.

On 30/3/2011 10:15 μμ, Arno Garrels wrote:

Hi,

at first you should get atest ICS source code and OpenSSL DLLs from
http://wiki.overbyte.be/wiki/index.php/ICS_Download

The problem with undeclared identifiers is easily solved by rebuilding
the project, a simple compile is not enough after changing the USE_SSL
directive.



--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be





--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Re: [twsocket] Strange SSL-components problem

2011-03-30 Thread Arno Garrels
Dimitris Botsis wrote:
> Hi Arno, thank you for replying.
> 
> I rebuild the project every time the problem occurs.
> I even uninstall the whole package and install it again.
> First times it works fine without problems.

That's because the package is built with USE_SSL enabled by default.
However you have to set USE_SSL in the project options as well.

Anyway whenever you see this error check whether or not
"USE_SSL" is defined in project's options and rebuild the project.

-- 
Arno Garrels


--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


[twsocket] TWsocket connection error 10048

2011-03-30 Thread RayA @ Ihug
Hi all...
 
I am running on Windows XP, Embarcadero XE 
 
I am using the TWSocket Version:7.47   in Client mode to connect to another
PC on my LAN which is also using TWSocket in Listen mode.
 
When I call the TWSocket->Connect() for the first time every thing works
perfectly, the connection is made and data can be Rx'ed and Tx'ed without
problems
 
then I call TWSocket->Close()
 
and a few seconds later I call TWSocket->Connect()
- In the OnSessionConnected  event I get the error 10048
 
If instead of waiting a few seconds, I wait 1 minute then call the
TWSocket->Connect() the connection is made and all works correctly
- this error = "Cannot bind to an already used TCP Port"
 
Is there some something you need to call after the Close() method before you
call the TWSocket->Connect() method ???
 
=
 
If I close the application, re-run it and try to connect, then the error
10048 still occurs !!!
 
 
thanks
for any help
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] TWsocket connection error 10048

2011-03-30 Thread Justin Wright
Try setting the ReuseAddr property to true.  This might help.


Justin.

-Original Message-
From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On
Behalf Of RayA @ Ihug
Sent: Thursday, 31 March 2011 9:35 AM
To: twsocket@elists.org
Subject: [twsocket] TWsocket connection error 10048

Hi all...
 
I am running on Windows XP, Embarcadero XE 
 
I am using the TWSocket Version:7.47   in Client mode to connect to another
PC on my LAN which is also using TWSocket in Listen mode.
 
When I call the TWSocket->Connect() for the first time every thing works
perfectly, the connection is made and data can be Rx'ed and Tx'ed without
problems
 
then I call TWSocket->Close()
 
and a few seconds later I call TWSocket->Connect()
- In the OnSessionConnected  event I get the error 10048
 
If instead of waiting a few seconds, I wait 1 minute then call the
TWSocket->Connect() the connection is made and all works correctly
- this error = "Cannot bind to an already used TCP Port"
 
Is there some something you need to call after the Close() method before you
call the TWSocket->Connect() method ???
 
=
 
If I close the application, re-run it and try to connect, then the error
10048 still occurs !!!
 
 
thanks
for any help
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be