ww.expertsoftware.be
> -Oorspronkelijk bericht-
> Van: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org]
> Namens Arno Garrels
> Verzonden: vrijdag 8 februari 2013 17:53
> Aan: ICS support mailing
> Onderwerp: Re: [twsocket] HTTPS problem
>
> Wilfried Mestdagh wr
Ik ga dus eerst proberen in Delphi XE met latest version.
> -Oorspronkelijk bericht-
> Van: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org]
> Namens Arno Garrels
> Verzonden: woensdag 6 februari 2013 18:47
> Aan: ICS support mailing
> Onderwerp: Re: [twsocket] HTTPS proble
Hello Arno,
Ok I will try with latest version. This is at the moment not the case. It is
an old application written in Delphi 7. Normally I don't update components
at the time there are a lot of commercial applications because I cannot test
them all.
But I have Delphi XE on another VM and will tr
Hello,
I have a application with THttpCli posting data to a server in HTTPS.
Normally I have to get back a little data and a statuscode 201. Certainly it
won't work anymore. Here is nothing changed (only the internet provider and
a faster VDSL line) and provider say it is still working when they t
Hi,
I found out if I specify enctype="multipart/form-data" it upload the file.
But how do I get the file content in THttpSrv? It seems not to be with
ExtractURLEncodedValue.
Socketspy shows me that it upload:
-265001916915724
Content-Disposition: form-data; name="data
Hi,
I try to upload a file in THttpSrv, but in ExtractURLEncodedvalue, I only
have 'datafile' containing the filename. If I try with socketspy in between
the I do not see any upload of the file (only datafile=filename.ext). So I
think I'm missing something.
This is the generated HTML code to uplo
den: maandag 17 oktober 2011 15:56
> Aan: ICS support mailing
> Onderwerp: Re: [twsocket] SSL session closed with 10053
>
> Use HttpCli.SslContext := TSslContext.Create(nil);
> Best Regards,
>
> SubZero
> On Mon, Oct 17, 2011 at 16:06, Wilfried Mestdagh
> wrote:
Ok thx SZ :)
FSslContext := TSslContext.Create(nil);
HttpCli := THttpCli.Create(nil);
Where and to what do I assign FSslContext to THttpCli ?
--
mvg, Wilfried
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/
Hello SZ,
Stupid question: in which unit is TSSlContext declared? I'm pulling my hair :(
--
mvg, Wilfried
http://www.mestdagh.biz
http://www.comfortsoftware.be
http://www.expertsoftware.be
> -Oorspronkelijk bericht-
> Van: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org
Hi Arno,
Thank you. You put me on a tracé. I put a breakpunt over there, it is not
the FSslEnable, but FSslContext is NIL so exeption is raised and eaten
somewhere.
Now my question: What is SSLContext and what should I do with it?
procedure TCustomSslWSocket.StartSslHandshake;
begin
{$IFNDEF NO_
Hi,
This is my First SSL with THttpCli. This site requires a BASIC
authentication but that is not importand here. The strange thing is I get a
session closed with winsock error 10053.
Nothing is sent. If I put SocketSpy in between then I also have the 10053
"in" Socketspy immediately after the cl
Hi,
> Would the demo "Client5: A basic client program using TWSocket
> component." seem to you who know like an alternative good starting
> point for my efforts?
The good starting point is: do not copy! - Study example; then start from
nothing - zero - null !
--
mvg, Wilfried
http://www.mestdag
Hi,
> to the target server, I need to send just two bytes, 0xBB and
> 0x83
You only need the HttpCli if you use HTTP protocol. Your device does not. It
uses his own protocol (receiving 2 bytes - sending results). So you need to
develop a simple TCP client program using TWSocket.
If you need to s
Hi,
> I would like to instead use the first option and not have it cut off on
> the first word. Is that possible?
The result is depending on the email reader of the recipient and not
predicable if you don't follow the rules. See the RFC's for header lines in
emails therefore. You must build a he
Hi Angus,
Yes indeed, I found out already. The authentication is an argument in the
POST command. When it is invalid or missing the server returns a 401 with
the missing header line. Is that a bug in the server?
--
mvg, Wilfried
http://www.mestdagh.biz
http://www.comfortsoftware.be
http://www.e
Hello,
I'm trying to POST to a server that needs authentication. I expect a 401
from the server with in the header something like:
WWW-Authenticate: Basic Realm=/something
But it is not in the response. Also what does the 'connection: close' mean?
I think the THttpCli does not send an authenticat
Hi Adam,
> despite tearing out some hair and losing a
Hopefully you have spare :)
> Result := PAnsiChar(NotesList.Strings[0]);
> NotesList.Delete(0);
The problem is that you give a pointer to the return value of that function
to something that not exists anymore after the functions exit
n be used with ICS?
>
> Regards, Adam
>
>
> -Original Message-
> From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org]
> On
> Behalf Of Wilfried Mestdagh
> Sent: 09 September 2011 09:04
> To: 'ICS support mailing'
> Subject: Re
Hi Adam,
> The problem is that the DLL is quite unstable so I was trying to use a
> different approach and hoping to get better stability.
Are we talking about TWSocket in your second approach?
> Right now, I have the basic DLL test project running - it is connecting
> to
> my server but the wor
Hi Adam,
> Hi - after pulling out a lot of hair
Hopefully you have some reserve :)
> I've spent the last couple of days tinkering with the DLL 1 example but
DLL is not different from other. Only think is if you write a DLL you maybe
don't know who call it. Maybe a programmer will use the DLL wi
e an accept select
> message?
>
> Hello Wilfried,
>
> Thanks for answering.
> Wouldn't an unhandled exception show up in a message box?
>
> Henk van der Meer
> Time Service
>
>
> -Oorspronkelijk bericht-
> Van: twsocket-boun...@elists.org [
Hi,
Possible you have an unhandled exception. Please put some logging code into
the event OnBGException to check this, as well for the server socket as for
the data (client) sockets.
--
mvg, Wilfried
http://www.mestdagh.biz
http://www.comfortsoftware.be
http://www.expertsoftware.be
> -Oors
Hi Lukas,
> version 1: incoming data are received in main thread and are written to
> buffer of client, client has own thread to process data in buffer
> version 2: data are received in client thread (in same way as in demo
> thread application)
Possible you have a trhead problem. Possible a thre
s it normal?
> What is property Multithreaded in TWServerSocket? Should it be set to
> TRUE? In demo application property is set to FALSE and only client
> sockets are set to TRUE.
>
> Now I have no idea where is problem with service hanging. Any idea
> where
> to look is wel
Hi,
If OnDataAvailable triggers then you have to try to receive data, even if
RcvdCount (wich is unreliable) returns 0. If you don't receive then
OnDataAvailable will be called again in a closed loop en that is probably what
happens.
--
mvg, Wilfried
http://www.mestdagh.biz
http://www.comfort
; actually sent (I can see it on sniffer), even on remote internet hosts
>
> Eric
>
>
> > -Oorspronkelijk bericht-
> > Van: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org]
> > Namens Arno Garrels
> > Verzonden: maandag 1 augus
cht-
> Van: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org]
> Namens Arno Garrels
> Verzonden: maandag 1 augustus 2011 16:57
> Aan: ICS support mailing
> Onderwerp: Re: [twsocket] Socket flushing
>
> Wilfried Mestdagh wrote:
> > Hi Eric,
> >
&g
Hi Eric,
> Socket.Send(@Data[0], Length(Data));
> Socket.Close;
I think this is better:
> Socket.Send(@Data[0], Length(Data));
> Socket.Shutdown(1);
This will send all data, telling the other end to signal to close when
received. There is in your case no need to call the Flush method.
--
mvg,
Hi Arno,
> Why? Do you have arguments?
No, just something I recall, but it is very long time ago so I assume you
are right.
> I agree that Flush generally violates the async paradigm and
> _might cause problems, however removing the call to MessagePump
> should not make a difference.
OK
--
mv
Hi Eric,
If the reason that you call the Flush method is because you want to be sure
all is sent before closing the socket then you can better call ShutDown(1)
method.
--
mvg, Wilfried
http://www.mestdagh.biz
http://www.comfortsoftware.be
http://www.expertsoftware.be
--
To unsubscribe or change
H Eric,
> If I keep a loop like this
>
> while (FHSocket <> INVALID_SOCKET) and (not bAllSent) do
> TryToSend;
>
> And TryToSend fails, will it fail everytime if I don´t call the message
> pump? In this case an infinite loop would happen right?
I think so yes.
--
mvg, Wilfried
http://www.me
Hi Eric,
TryToSend will exit if winsock returns WSAEWOULDBLOCK. I think that is the
reason for the message pump call. I never used the Flush method.
--
mvg, Wilfried
http://www.mestdagh.biz
http://www.comfortsoftware.be
http://www.expertsoftware.be
> -Oorspronkelijk bericht-
> Van: tws
> I´m having some issues with socket flushing due to the messageloop that
What issues?
> What is the purpose of calling MessagePump over here?
Good question :) This dates from 1994...
--
mvg, Wilfried
http://www.mestdagh.biz
http://www.comfortsoftware.be
http://www.expertsoftware.be
> -Oo
> When I call Client.Close the Client will be freed automatically
> (destructor of Client will be called)?
Yes. Sidenote: if you do this from withing an event then call CloseDelayed.
--
mvg, Wilfried
http://www.mestdagh.biz
http://www.comfortsoftware.be
http://www.expertsoftware.be
> -Oors
Hi,
Maybe too many sockets in TIME_WAIT? You can chech this with netstat -a
--
mvg, Wilfried
http://www.mestdagh.biz
http://www.comfortsoftware.be
http://www.expertsoftware.be
> -Oorspronkelijk bericht-
> Van: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org]
> Namens mf
Hi Eric,
> I know, but if you still call OnDataAvailable with current socket
> options,
> for the ones that has not set wsoNoReceiveLoop (By default) the
> behaviour
> will still be the same right... for the ones that has set
> wsoNoReceiveLoop
> (like me) OnDataAvailable will still be called, and
> I know this is by design, but I believe that is why you have added
> wsoNoReceiveLoop so we don´t have to receive data in OnDataAvailable...
No this is addes to get out of a closed loop in case of users had slow code
to process fast data.
> software wasn´t being able to process over 150mbits of
Hi
> RecStream := TMemoryStream.Create;
If you have a memory leak in this code fragment then you probably forgot to
free the stream.
--
mvg, Wilfried
http://www.mestdagh.biz
http://www.comfortsoftware.be
http://www.expertsoftware.be
--
To unsubscribe or change your settings for TWSocket maili
Hi,
> it is expecting that my
> event handler DO receive the data (But it doesn´t) and then, it locks
> up on a loop!
You have to receive the available data in the OnDataAvailable event handler.
This is by design. If you want to process the data in another thread then
the most obvious is that you
Hi,
No you cannot repair lower layers. There could be a hardware problem or a
driver problem. But I think you should be able to connect again without quit
/ restart the application.
--
mvg, Wilfried
http://www.mestdagh.biz
http://www.comfortsoftware.be
http://www.expertsoftware.be
> -Oorspr
Hi,
This is how winsock works. OnSessionConnected is fired with an error, after
it OnSessionClosed is fired with or without an error. You should use the
events in how to access the component.
--
mvg, Wilfried
http://www.mestdagh.biz
http://www.comfortsoftware.be
http://www.expertsoftware.be
> -
Hi Angus,
Thank you for reply and usefull information. I'm in the stage of price for
customer but if I get my hands into it there sure will be ICS example :)
--
mvg, Wilfried
http://www.mestdagh.biz
http://www.comfortsoftware.be
http://www.expertsoftware.be
> -Oorspronkelijk bericht-
>
Hello,
I have an SMTP server receiving mail to be send by SMS. I have to implement
SPF record verification. I think with this information I can at least verify
that the SMTP client who connect is the one who he claims to be.
But where and how can I grab SPF records? Did somebody already written s
Hi Francois,
> A dual mode service is an application which detect if it run as a
> service
I understeand. I did the same concept years ago
--
mvg, Wilfried
http://www.mestdagh.biz
http://www.comfortsoftware.be
http://www.expertsoftware.be
--
To unsubscribe or change your settings for TWSocket
Hi Francois,
> Actually the service is a dual mode service/app console and it works
> perfectly well as a console application (and also as a service when a
> debugger is attached).
I do not understand the 'dual mode' but could that be a reason? What happens
if you put your application into 1 obje
Hi Arno,
> It wasn't registered for the correct string type
Yes this fix is working fine.
--
mvg, Wilfried
http://www.mestdagh.biz
http://www.comfortsoftware.be
http://www.expertsoftware.be
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/
Hi,
I just discovered that the property editor for LineEnd is broken using
Delphi XE. No big deal for me as I always create TWSocket at runtime. I
don't know how much work it is. If someone can give some hint maybe I find
the time to work on it.
--
mvg, Wilfried
http://www.mestdagh.biz
http://ww
Hi,
I just installed Delphi XE pro. Is http://wiki.overbyte.be/arch/icsv7w.zip
the latest version for ICS?
--
mvg, Wilfried
http://www.mestdagh.biz
http://www.comfortsoftware.be
http://www.expertsoftware.be
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http:/
Hello,
> I fixed the problem but I don't understand why it did as what I
> changed should not have chaneg anything, I only removed the
> ReceiveStr() loop
The design is that this method only be called 1 time in OnDataAvailable. So
by calling it multiple times you are in an un
Hi,
> Sorry again, Francois told me and I missed it.
> https://www.quicksilvermail.net/socketspyc.zip
Glad it is solved :)
--
mvg, Wilfried
http://www.mestdagh.biz
http://www.comfortsoftware.be
http://www.expertsoftware.be
> -Oorspronkelijk bericht-
> Van: twsocket-boun...@elists.org [
Hi,
Do you reconnect in the OnClose event?
If so do it outside it by posting a message to a custom message handler.
--
mvg, Wilfried
http://www.mestdagh.biz
http://www.comfortsoftware.be
-Oorspronkelijk bericht-
Van: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] Name
Hi Anton,
Never had that issue, but can you First disable all firewall and
virusscanner on the machine where you run the application and try again?
--
mvg, Wilfried
http://www.mestdagh.biz
http://www.comfortsoftware.be
-Oorspronkelijk bericht-
Van: twsocket-boun...@elists.org [mailto:
Hi Graham,
Yes TFileStream will use disk. If you have only small transfers you can do
as you do now. If you worry about speed then you could gain speed a lot by
using pointers to your own memory location instead of TStream.
--
mvg, Wilfried
http://www.mestdagh.biz
-Oorspronkelijk bericht--
Hi Anton,
Somewhere in your application a pointer is probably overwritten by something
else. Not easy to fins especially if it happens only once a while. It can
due to several reasons:
- Filling a record with a size bigger than it is
- Usage of allocated memory for something that where it is not a
Hi,
> To clarify, OnDataAvailable has received complete data, say:
> help\n
> In processing that data, an exception occurs and TWSocket.Abort is called
to
> abort the connection. Before .Abort returns, OnDataAvailable is called
> again, with the exact same that was already being processed:
These
Hi,
It is not a bug, it is by design. The data already received is delivered to
the application. The application can easy check if it is complete data by
checking the line end character(s).
--
mvg, Wilfried
http://www.mestdagh.biz
--
To unsubscribe or change your settings for TWSocket mailing l
Hi,
> WSocket1.Addr:='192.168.1.2';
> WSocket1.port:='9600';
> I get an error 10049.
Means you cannot bind to that address. '192.168.1.2' is the address on the
remote machine, you can not listen on that.
> The only difference I can see is the sending local port number is not
9600.
This should m
Hi,
You use UDP and UDP respect packet boundary. So as soon winsock has receive
a complete packet then it will deliver to application.
--
mvg, Wilfried
http://www.mestdagh.biz
-Oorspronkelijk bericht-
Van: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] Namens
ed...@cl
Hi Engi,
No the Receive method is not blocking. The method copy the already received
data with a maximum of what you give to it as size.
--
mvg, Wilfried
http://www.mestdagh.biz
-Oorspronkelijk bericht-
Van: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] Namens
Engi
V
Hi Dave,
In addition of the reply of Francois. If your receiver has no time receiving
an UDP packet (for example when it arrives when your application is busy
displaying it in the TRichEdit) then it will be trown away. That is nature
of UDP and probably the reason that you only receive 1 packet.
Hi,
The mails are automatically sent to every subscriber on the list. If you get
your mail with the same email address you will get all the mail
automatically.
--
mvg, Wilfried
http://www.mestdagh.biz
-Oorspronkelijk bericht-
Van: twsocket-boun...@elists.org [mailto:twsocket-boun...@el
For me too a merry christmas an a happy new year!!!
And for next year interesting projects
--
mvg, Wilfried
http://www.mestdagh.biz
-Oorspronkelijk bericht-
Van: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] Namens
Signed Source® Project
Verzonden: dinsdag 22 dece
Hi,
>while sckCustScreen.State <> wsclosed do
> Application.ProcessMessages;
No, use the State property only for displaying states, not to take action.
Also it is not a wise idea to put your application in a loop. Use OnClose
event of the socket. It will fire when it is close; in the OnC
is
> on?
> Am I missing something?
> - daniel
> ----- Original Message -
> From: "Wilfried Mestdagh"
> To: "ICS support mailing"
> Cc: "Signed Source® Project"
> Sent: Friday, November 20, 2009 9:41 PM
> Subject: Re[2]: [twsocket] Overbyte
d only localhost and it gives this.
>>> ..
>>> ..
>>> Resolving host 'localhost'
>>> Host 'localhost' is 127.0.0.1
>>> Sending 56 bytes to 127.0.0.1 (127.0.0.1) Received 56 bytes
>>> from 127.0.0.1 in 0 msecs
>>> .
> >From PingTst I can ping only and only localhost and it gives this.
>>> ..
>>> ..
>>> Resolving host 'localhost'
>>> Host 'localhost' is 127.0.0.1
>>> Send
Hello Signed,
Can you ping your local machine (127.0.0.1)?
Can you ping both with the command interpreter?
---
Rgds, Wilfried [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html
http://www.mestdagh.biz
Thursday, November 19, 2009, 20:39, Signed Source® Project wrote:
> Hi guys,
> I have
Hello Andrea,
You should check in every event if there is a Winsock error. When nobody
is listening then OnSessionConnected is fired with winsock error 10061.
Then you know there is no connection. That is how winsock works.
Use the OnChangeState only for displaying options if you need it.
If you
wrote:
> Wilfried,
> thanks for your great support! I'd like to send you the example offline,
> as soon as I'll get access to my office pc.
> Michael
> Wilfried Mestdagh schrieb:
>> Hello Michael,
>>
>> Can you point me to the example and what e
Hello Michael,
Can you point me to the example and what exacly is going wrong? I like
to help you.
---
Rgds, Wilfried [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html
http://www.mestdagh.biz
Monday, November 16, 2009, 15:26, Kochendoerfer, Michael wrote:
> I'd like to stay with ICS, a
> Mixed up request types with methods, guess you know what I mean
> nevertheless.
That's ok. Thanks for the help.
---
Rgds, Wilfried [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html
http://www.mestdagh.biz
--
To unsubscribe or change your settings for TWSocket mailing list
please goto
thank you Arno for fast answer,
Does it not matter how the code is written (OnRequestDone), eg like
this:
case RqType of
smtpConnect: begin
Cli.Helo;
end;
smtpHelo: begin
Cli.Mail;
end;
Meaning, I don't use Ehlo method or so.
---
Hello,
I cannot test this at the moment, but if I set in TSmtpCli (ICS V5):
AutType := smtpAuthAutoSelect;
And fill in the userName and passWord (at creation time), is this enough
that it find all possible autentication types (seems to be quit a few)?
--
Rgds, Wilfried
http://www.mestdagh.biz
--
Hello Alper,
> I'm using LineMode, to receive all data sent. (My data size is 49b in total
> and no string data in it)
> Are there any conflicts i may encounter in the approach stated below?
Yes, if your binary data contains the line end characters you use the
your code will fail as Arno already
Hello Engi,
How do you send your data in the server?
it should be something like:
for n := 0 to Srv.ClientCount - 1 do
try
Srv.Clients[n].SendStr('Hello again');
except
end;
---
Rgds, Wilfried [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html
http://www.mestdagh.biz
Tues
Hello Flavio,
Not a known issue. But when it accept new connections after you restart
your application, maybe you are out of nonpaged memory? (sockets use
nonpaged).
---
Rgds, Wilfried [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html
http://www.mestdagh.biz
Monday, June 15, 2009, 22:08
Hello Robert,
To be absolutely sure if it is the sending or receiving application I
suggest you put SocketSpy between it. You find it on user made page.
Then we are sure in wich application is a bug and we can search deeper.
---
Rgds, Wilfried [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics
Hello Markus,
Since it happen sometimes it is possible you have some where an
exception that does not show up where you loose data.
Other possibility I see you have a long lineEnd. Can you also test with
1 or 2 character? Maybe you have an untested situation.
---
Rgds, Wilfried [TeamICS]
http://
Hello Markus,
> problem here is: it's a connection to 127.0.0.1 which at least Wireshark
> doesn't see. Can you recommend any other packet sniffer capable of
> watching localhost connections?
You can use SocketSpy (you can find it at the user made page). It works
like a kind of proxy dislaying al
Hello Paul,
use starting from WM_USER.
You don't have to worry because you send / post messages to specific
windows, so the right window will receive it.
WM_USER = 0x400
WM_APP = 0x8000
Windows help say:
Message numbers in the second range (WM_USER through 0x7FFF) can be
defined and used by an
Hello Ronaldo,
10053 is when OS decide to stop the connection. Normally this is because
of some network problem, a malfunctioning router or switch. But many
virus scanners and firewalls are doing wierd things with TCP, so stop
any service of it (not disable it) and test again.
---
Rgds, Wilfried
Hello Ronaldo,
oke we are getting somewhere :)
> procedure TForm3.SocketSessionClosed(Sender: TObject; ErrCode: Word);
> begin {this is Socket = TWSocket}
> memo1.lines.add('Proxy Disconnected from Server!');
> memo1.lines.add( Format('Error %d on SocketSessionClosed',
Hello Ronaldo,
> yes, error is on TWsocket!
> here is code
I don't see anywere in your code logging of the ErrCode argument in the
TWSocket events! So it is not sure where you get the error 5
I also see you use OnError event of TWSocketServer and use GetLastError
there. Don't use OnError, instea
Hello Ronaldo,
As Arno already sayed this is not a winsock error. But to be sure
(because I don't see it in your code example), we are talking about the
ErrCode argument in the TWSocket events, right?
---
Rgds, Wilfried [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html
http://www.mestdag
Hello Ronaldo,
At first sight I see nothing wrong with your code. However it is not
normal that some of the sockets close without reason. Wich of the
sockets do the close? Maybe the close is with a winsock error, then it
will tell you more about the reason. You have at least log all the
winsock er
nse. No I do not know anything about the message
> pump. I started from the small sample code for the server and did not see
> anything about message pump, though I have seen other references to it. How
> to implement? I am using Delphi 7 by the way.
> -Alex
> On Wed, Apr 22, 2009
Hello Alex,
Are you sure you have a working message pump? If not no event will
fire.
---
Rgds, Wilfried [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html
http://www.mestdagh.biz
Wednesday, April 22, 2009, 15:45, Alex Greenspan wrote:
> I am using TWSocketServer to listen and connect to
Hello Markus,
> I haven't yet a failure message or so
if a socket can't connect then onsessionconnect is fired with an error
code. then onsessionclose is fired, eventually also with an error code.
I assume you keep these errorcodes in an errorlog file or so. you have
to give this so we can see wh
Hello Jeff,
> I followed the example (I think!) and created the stream in DocBegin,
> used it RequestDone and freed it in DocEnd - which seems logical but in
> debugging I see that DocEnd comes before RequestDone.
DocBegin: fires at begin of the document
DocEnd: fire at end of the document
Reques
Hello Markus,
Release post a message to a hidden window. when the message is received
Destroy is called. You can check that with the debugger.
Destroy call the destructor direct. Free checks for null value and then
calls Destroy.
---
Rgds, Wilfried [TeamICS]
http://www.overbyte.be/eng/overbyte/t
Hello Markus,
you have to destroy it outside an event handler. to do that you can call
the Release method. Then it is destroyed when messages are pumped again,
so after your code finish.
---
Rgds, Wilfried [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html
http://www.mestdagh.biz
Tuesday
Hello Arno,
> procedure PatchINT3;
This procedure works great. But something is strange. If I run this in a
separate application then it does not work. However as far as I know a
DLL is loaded only once in memory. So then it should work also if I run
this in a separate app and let the other appli
Hello Paul,
What about the assembler pause opcode? I think it is introduced starting
pentium 4. You could do the delay loop in asm and insert pause's to
decrease the cpu load.
---
Rgds, Wilfried [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html
http://www.mestdagh.biz
Tuesday, January 2
Hello Paul,
> I think tou mean "sending a message" here to block the program flow a while.
Not exacly. If you use SendMessage to a message pump for a window
created in the same thread contextt then it is just a function call. If
other thread context then it will block until the thread has timesli
Hello Paul,
You could do very small delays by posting a message to a custom message
handler. You cannot measure the delay, but it is not depending the
timeslice like with the other delay's or a TTimer.
---
Rgds, Wilfried [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html
http://www.mestda
Hello Arno,
This is interesting. If I see it clear you change the int 3 with a nop
instruction.
The only strange thing is, that I never had that problem (win xp sp3,
D7), but it could be by a recent upgrade service pack maibe...
---
Rgds, Wilfried [TeamICS]
http://www.overbyte.be/eng/overbyte/te
Hello,
I run a certain application using TWSocket, and when I run it in the
debugger, then every time when a re Connect is happening (if no server
available) the debugger stops at a hardcoded break:
NTdll.DBGBreakPoint
int 3
ret
any idea how this can happen ?
--
Rgds, Wilfried
http://w
Hello Paul,
No this is not needed in a tray icon because it can use the notification
from windows. You find one on my site.
Of course when you popup a menu if click on it then it processes
messages but this is NOT from within an event from an ICS component so
no harm.
---
Rgds, Wilfried [TeamICS
a time ago I found a free service to message board that could be act as
a copy of a mailing list and vice versa. then both can be used.
if Francois agree I could search for it.
---
Rgds, Wilfried [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html
http://www.mestdagh.biz
Wednesday, Decemb
Hello Anton,
> *embarrassed* how these two statements combine?
> Why several Receives should cause troubles?
it is by design, only 1 receive call in the event.
> And another question. Is TWSocket.RcvdCount value reliable, i.e. if
> it = 0, then there is really no data in the socket?
Microsoft r
1 - 100 of 770 matches
Mail list logo