Re: [twsocket] InternalAbort causes OnDataAvailable *during* the Abort call

2010-03-26 Thread Jon Robertson
You won't be able to reproduce this. This is only occurring because I've modified the exception handler in ASyncReceive to call HandleBackGroundException, which in turn calls Abort. The version in SVN does not call Abort when an exception occurs in ASyncReceive (or associated event handlers). I'

Re: [twsocket] Exceptions ignored in OnDataAvailable method

2010-03-26 Thread DZ-Jay
Jon Robertson wrote: FWIW, I've patched the exception handler in ASyncReceive as below. If there are objections, please explain them so I can determine another solution. except on E:Exception do begin bMore := FALSE; HandleBackGroundException(E);

[twsocket] Unit is already finalized, check your threads!!!

2010-03-26 Thread Jon Robertson
When opening a form that contains ICS components, I received this exception from the IDE: Error Reading Form Unit is already finalized, check your threads!! (S:\Components\D2009\ICS\Delphi\Vcl32\OverbyteIcsWndControl.pas line 497). Ignore the error and continue? NOTE: Ignoring the error may cau

Re: [twsocket] Exceptions ignored in OnDataAvailable method

2010-03-26 Thread Jon Robertson
FWIW, I've patched the exception handler in ASyncReceive as below. If there are objections, please explain them so I can determine another solution. except on E:Exception do begin bMore := FALSE; HandleBackGroundException(E); end; end;

Re: [twsocket] Exceptions ignored in OnDataAvailable method

2010-03-26 Thread Francois PIETTE
Francois, is there any objection to patching ASyncReceive to call the BG Exception handler? No objection. -- francois.pie...@overbyte.be The author of the freeware multi-tier middleware MidWare The author of the freeware Internet Component Suite (ICS) http://www.overbyte.be - Original Mes

[twsocket] Avaya Reliable Session Protocol

2010-03-26 Thread Angus Robertson - Magenta Systems Ltd
Has anyone looked at implementing the Avaya Reliable Session Protocol, otherwise known as 'Session Protocol on TCP/IP Sockets'? It's a layer 5 session protocol designed to send reliable line oriented data, specially telephone call data records, without data loss and without duplication. The pro

Re: [twsocket] THttpCli: (StatusCode = 0 AND ReasonPhrase = "OK") ???

2010-03-26 Thread DZ-Jay
On Mar 26, 2010, at 04:05, Keith Willis wrote: > Hi All, > > I've noticed that sometimes this happens in my application... > > THttpCli: (StatusCode = 0 AND ReasonPhrase = "OK") > > A search of the "HttpProt.pas" source has failed to shed any further light > on this... Any suggestions? > At

Re: [twsocket] InternalAbort causes OnDataAvailable *during* the Abort call

2010-03-26 Thread DZ-Jay
On Mar 26, 2010, at 04:02, Jon Robertson wrote: > 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 exa

Re: [twsocket] THttpCli: Handling Web Pages that Return Nothing

2010-03-26 Thread DZ-Jay
On Mar 25, 2010, at 21:25, Keith Willis wrote: > For the moment I am temporarily setting my HttpCli Timeout mod to 0, which > works well. For some reason calling "GetAsync" directly, hangs the app and I > haven't had a chance to investigate further. As Francois commented, the HTTP protocol is st

Re: [twsocket] Exceptions ignored in OnDataAvailable method

2010-03-26 Thread DZ-Jay
On Mar 25, 2010, at 18:33, Jon Robertson wrote: > Does anyone know why ASyncReceive is swallowing the exception and not > calling HandleBackgroundException? Wow, that was a some time ago. As far as I recall, Arno and I verified that it was indeed a bug; the code should be trapping exceptions a

Re: [twsocket] New Zlib

2010-03-26 Thread Angus Robertson - Magenta Systems Ltd
> Could some kindly person that understands C possible recompile the > new version with C++ Builder into new OBJ files Many thanks to Arno for building the required files. Angus -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mail

Re: [twsocket] THttpCli: (StatusCode = 0 AND ReasonPhrase = "OK") ???

2010-03-26 Thread DZ-Jay
On Mar 26, 2010, at 04:05, Keith Willis wrote: > I've noticed that sometimes this happens in my application... > > THttpCli: (StatusCode = 0 AND ReasonPhrase = "OK") > > A search of the "HttpProt.pas" source has failed to shed any further light > on this... Any suggestions? Could that be becau

[twsocket] THttpCli: (StatusCode = 0 AND ReasonPhrase = "OK") ???

2010-03-26 Thread Keith Willis
Hi All, I've noticed that sometimes this happens in my application... THttpCli: (StatusCode = 0 AND ReasonPhrase = "OK") A search of the "HttpProt.pas" source has failed to shed any further light on this... Any suggestions? Regards, Keith Willis. No virus found in this outgoing message. Checke

Re: [twsocket] InternalAbort causes OnDataAvailable *during* the Abort call

2010-03-26 Thread Jon Robertson
On Fri, Mar 26, 2010 at 2:46 AM, Jon Robertson wrote: > In fact, OnDataAvailable has already been called with the exact same data. > If OnDataAvailable is called twice with the same data, but the data was only > received once, I consider that a bug. > To clarify, OnDataAvailable has received comp

Re: [twsocket] InternalAbort causes OnDataAvailable *during* the Abort call

2010-03-26 Thread Jon Robertson
In my scenario, the data is "complete" because there are line end characters. In fact, OnDataAvailable has already been called with the exact same data. If OnDataAvailable is called twice with the same data, but the data was only received once, I consider that a bug. Thanks On Fri, Mar 26, 2010

[twsocket] Add custom message to TWSocket created in thread

2010-03-26 Thread Patrick Wong
Hi all, I am using ICS with BCB6. I attempt to use a TWSocket in a thread. Since TWSocket is asynchronous all its action is event-driven. To make it works in a thread its message loop method must be called. My question is how can I add custom messages to the object so that custom message ha