[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

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

2010-03-25 Thread Keith Willis
Ok Thanks Francois, That was more or less what I suspected. I will contact the camera manufacturer and let them know. 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 inv

[twsocket] THttpCli: Handling Web Pages that Return Nothing

2010-03-25 Thread Keith Willis
added a timeout). Other than calling "THttpCli.GetAsync" is there any other way for "THttpCli" to handle web pages that return nothing? Regards, Keith Willis. No virus found in this outgoing message. Checked by AVG - www.avg.com Version: 9.0.791 / Virus Database: 271.1.1/

[twsocket] PROGRESS: EAccessViolations when Posting Data to a HTTPServer

2009-02-05 Thread Keith Willis
Oops...I forgot to add the following line to my code: HttpServer->ClientClass = __classid(TMyHttpConnection); Consequently, all my memory allocations/deallocations were trashing the heap in unpredictable ways. Keith Willis. ps. That MadExcept looks great as does EurekaLog -Origi

Re: [twsocket] EAccessViolations when Posting Data to a HTTPServer

2009-02-04 Thread Keith Willis
ideas. It might be time to try the Indy component to see what it does :( Keith Willis. -Original Message- From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On Behalf Of Arno Garrels Sent: Monday, 2 February 2009 3:43 AM To: ICS support mailing Subject: Re:

Re: [twsocket] EAccessViolations when Posting Data to a HTTPServer

2009-01-31 Thread Keith Willis
Well I tried "malloc" and "free" without any joy. I have however been able to ascertain that its crashing in the call to "Receive". More significantly its only crashing on my target machine, (an ASUS EEE Box B202 running Windows XP Home). I can't seem to crash it on my development PC, (A generic P

Re: [twsocket] EAccessViolations when Posting Data to a HTTPServer

2009-01-31 Thread Keith Willis
y, 1 February 2009 3:55 AM To: ICS support mailing Subject: Re: [twsocket] EAccessViolations when Posting Data to a HTTPServer Keith Willis wrote: > Just confirming that you meant to write: > > ClientCnx->Receive(Junk, sizeof(Junk)); > > Instead of: > > ClientCnx->

Re: [twsocket] EAccessViolations when Posting Data to a HTTPServer

2009-01-31 Thread Keith Willis
Arno, No luck I'm afraid... I'm still getting those AV's :( Keith. Here's my current code... As per your suggested code. I also made the TMemoryManager global to the application. I will try free and malloc next. <<< CODE SNIPPETS >>> //---

Re: [twsocket] EAccessViolations when Posting Data to a HTTPServer

2009-01-31 Thread Keith Willis
Hi Arno, Just confirming that you meant to write: ClientCnx->Receive(Junk, sizeof(Junk)); Instead of: ClientCnx->Receive(&Junk, sizeof(Junk)); Cheers, Keith. -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/tw

Re: [twsocket] EAccessViolations when Posting Data to a HTTPServer

2009-01-30 Thread Keith Willis
Hi Arno, > You never check PostedDataSize, the size of your receive buffer. > The pascal demo allocates this buffer dynamically depending on the RequestContentLength plus one byte for the null terminator in the OnPostDocument event handler. > What is the value of RcvdByteCount when the error happe

[twsocket] EAccessViolations when Posting Data to a HTTPServer

2009-01-30 Thread Keith Willis
is not an acceptable solution). In the code snippets below I pre-allocate once in the constructor but this still generates AV's. Can anyone shed some light on what might be happening here? Regards, Keith Willis. &l

[twsocket] FTP Client - Size() Function

2005-07-30 Thread Keith Willis
; document the most useful new commands. The responses of five common FTP servers to FEAT are listed below: Cheers, Keith Willis. -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be

[twsocket] Typo in IcsSha1.pas ?

2005-07-24 Thread Keith Willis
"IcsSha1.pas" LINE 63: Bomb('This code requires Delphi 2 or later'}; Methinks... final "}" should be a ")" Keith. -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be

[twsocket] More on "winsock.h included"

2005-07-24 Thread Keith Willis
pp", "IdComponent.hpp", "IdHTTP.hpp", "IdTCPClient.hpp", "IdTCPConnection.hpp") then ICS, ("SmtpProt.hpp", "FtpCli.hpp") followed by Borland, () and finally TurboPower Internet Professional, ("IpFtp.hpp"). All oth

[twsocket] winsock.h included

2005-07-24 Thread Keith Willis
op of every one of my header files, but the errors are still there. To be honest I have no idea where these files are actually being included and would appreciate any workaround suggestions that may be forthcoming... Regards, Keith Willis. -- To unsubscribe or change your settings for TWSock

[twsocket] TFtpClient Timeouts?

2005-07-23 Thread Keith Willis
Hi All, What's the best way to detect if a timeout has occurred in a TFtpClient operation? Regards, Keith Willis. -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be

[twsocket] Latest version of TFtpClient?

2005-07-23 Thread Keith Willis
an 'Zarkow' Munkestam <[EMAIL PROTECTED]>." Regards, Keith Willis. -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be

[twsocket] File Uploads via HTTP

2005-06-11 Thread Keith Willis
Hi All, Is there a way to upload files directly, (in a similar fashion to FTP) using the ICS HTTP Client? Regards, Keith. -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be

RE: [twsocket] TSyncSmtpCli->EmailFiles is NULL

2005-03-20 Thread Keith Willis
Now it gets even stranger... I explicitly included the following ICS units in my C++ Builder project and the problem went away??? (I thought I might be able to trace the constructor execution with the BCB5 debugger this way) SmtpProt.pas Wsocket.pas IcsMD5.pas Regards, Keith Willis

[twsocket] TSyncSmtpCli->EmailFiles is NULL

2005-03-20 Thread Keith Willis
Dear ICS People, I am dynamically creating an instance of TSyncSmtpCli in a TThread at runtime, (C++ Builder 5). The EmailFiles TStringList member is always NULL when I do this and I cannot assign a new TStringList to it, (it remains NULL). ... Any ideas? Regards, Keith Willis. -- To