Re: [twsocket] BCB2006 package of ICSv7 snapshot missing some files
Thanks, Just updated the SVN repository as well as the nightly built ZIP. -- Arno Garrels Fastream Technologies wrote: Hello, Basically it does not link due to missing webappserver and some other units in the package. FYI. Regards, SZ -- 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] vFAQ - SMTPCli - Component not ready
I know this is a vFAQ, but please read anyway :-) Using Codegear C++2009, I have tried to use the example Mailsnd. My code: SMTP-Host = Data-TAoplysning-FieldByName(Mailserver)-AsString; SMTP-Port = Data-TAoplysning-FieldByName(Port)-AsInteger; SMTP-SignOn = Data-TAoplysning-FieldByName(Email1)-AsString; SMTP-FromName = Data-TAoplysning-FieldByName(Firma)-AsString; SMTP-HdrFrom = Data-TAoplysning-FieldByName(Email1)-AsString; SMTP-HdrTo = Edit1-Text; SMTP-HdrSubject = Edit3-Text; SMTP-AuthType = smtpAuthNone; SMTP-Username = Data-TAoplysning-FieldByName(Brugernavn)-AsString; SMTP-Password = Data-TAoplysning-FieldByName(MailKodeord)-AsString; SMTP-HdrPriority = smtpPriorityNone; SMTP-ConfirmReceipt = false; SMTP-RcptName-Clear(); SMTP-RcptNameAdd(Edit2-Text,Edit3-Text,Edit4-Text); SMTP-MailMessage = Memo1-Lines; SMTP-Connect(); And the code for RequestDone: switch(RqType) { case smtpConnect: SMTP-Helo(); case smtpHelo: SMTP-MailFrom(); case smtpEhlo: SMTP-Auth(); case smtpAuth: SMTP-MailFrom(); case smtpMailFrom: SMTP-RcptTo(); case smtpRcptTo: SMTP-Data(); case smtpData: SMTP-Quit(); } When using above code I get the famous error Component not ready and the mail-server log show: May 11 07:40:24 apollon sendmail[19691]: n4B5eNZs019691: [192.168.1.1] did not issue MAIL/EXPN/VRFY/ETRN during connection to MTA I know I am missing something, but can't figure out what... Any ideas of what I should look for...? Regards: Ole Braad-Sorensen www.foldrenser.dk -- 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] BCB2006 package of ICSv7 snapshot missing some files
Just to add to this, the CRC unit is there in the distribution, just not included in the project. Adding it to the project builds just fine (with 1 Pascal hint) - I did this *just* last night. Cheers, Mohit. 5/11/2009 | 2:47 PM. Fastream Technologies wrote: Also, ICSv6 snapshot BCB2006 package misses the CRC unit. Regards, Gorkem -- 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] BCB2006 package of ICSv7 snapshot missing some files
Thanks, C++ Builder V6 Packages updated and warning removed, in both SVN repository as well as nightly built ZIP. -- Arno Garrels Mohit Sindhwani wrote: Just to add to this, the CRC unit is there in the distribution, just not included in the project. Adding it to the project builds just fine (with 1 Pascal hint) - I did this *just* last night. Cheers, Mohit. 5/11/2009 | 2:47 PM. Fastream Technologies wrote: Also, ICSv6 snapshot BCB2006 package misses the CRC unit. Regards, Gorkem -- 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] BCB2006 package of ICSv7 snapshot missing some files
Thanks Arno! Arno Garrels wrote: Thanks, C++ Builder V6 Packages updated and warning removed, in both SVN repository as well as nightly built ZIP. -- 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
Re: [twsocket] vFAQ - SMTPCli - Component not ready
Ole Braad-Sørensen wrote: When using above code I get the famous error Component not ready and the mail-server log show: You do not check for ErrCode = 0 in OnRequestDone. Put a break point before or at the switch statement and single-step thru the code. That will show you what's wrong. -- 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] THttpServer under ICSv7 and BCB2007
Hello, I have an upgraded code from v6. The below line: adminHTTPServer = new THttpServer(NULL); causes AV (write of address 0014). Any idea what might have I done wrong? This is a GUI app but for debugging the service so do not want to use Forms::Application. Best Regards, SZ -- 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] THttpServer under ICSv7 and BCB2007
Also FYI: I have defined in both gui app and package NOFORMS;USE_SSL;NO_ADVANCED_USE_OF_HTTP_CLIENT;SECURITY_WIN32;NO_DEBUG_LOG . The Delphi guys may say why don't you step into the code and debug but BCB2007 does not let me step into Delphi code in C++ projects. Regards, Gorkem Ates On 5/11/09, Fastream Technologies ga...@fastream.com wrote: Hello, I have an upgraded code from v6. The below line: adminHTTPServer = new THttpServer(NULL); causes AV (write of address 0014). Any idea what might have I done wrong? This is a GUI app but for debugging the service so do not want to use Forms::Application. Best Regards, SZ -- Gorkem Ates Fastream Technologies Software IQ: Innovation Quality www.fastream.com | Email: supp...@fastream.com | Tel: +90-312-223-2830 | MSN: g_a...@hotmail.com Join IQWF Server Yahoo group at http://groups.yahoo.com/group/IQWFServer Join IQ Reverse Proxy Yahoo group at http://groups.yahoo.com/group/IQReverseProxy -- 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] THttpServer under ICSv7 and BCB2007
Hello, I fixed this by removing the v6 libs from project file using Notepad. Regards, SZ On 5/11/09, Fastream Technologies ga...@fastream.com wrote: Also FYI: I have defined in both gui app and package NOFORMS;USE_SSL;NO_ADVANCED_USE_OF_HTTP_CLIENT;SECURITY_WIN32;NO_DEBUG_LOG . The Delphi guys may say why don't you step into the code and debug but BCB2007 does not let me step into Delphi code in C++ projects. Regards, Gorkem Ates On 5/11/09, Fastream Technologies ga...@fastream.com wrote: Hello, I have an upgraded code from v6. The below line: adminHTTPServer = new THttpServer(NULL); causes AV (write of address 0014). Any idea what might have I done wrong? This is a GUI app but for debugging the service so do not want to use Forms::Application. Best Regards, SZ -- 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] THttpServer under ICSv7 and BCB2007
Fastream Technologies wrote: Hello, I fixed this by removing the v6 libs from project file using Notepad. So not a bug in ICS. Please note that the THttpServer got an internal timer which iterates thru the list of clients every 5 seconds to detect timeouts. This may be important to know if you use some derived multi-threaded component. Also the default timeout is somewhat short. -- Arno Garrels Regards, SZ On 5/11/09, Fastream Technologies ga...@fastream.com wrote: Also FYI: I have defined in both gui app and package NOFORMS;USE_SSL;NO_ADVANCED_USE_OF_HTTP_CLIENT;SECURITY_WIN32;NO_DEBUG_LOG . The Delphi guys may say why don't you step into the code and debug but BCB2007 does not let me step into Delphi code in C++ projects. Regards, Gorkem Ates On 5/11/09, Fastream Technologies ga...@fastream.com wrote: Hello, I have an upgraded code from v6. The below line: adminHTTPServer = new THttpServer(NULL); causes AV (write of address 0014). Any idea what might have I done wrong? This is a GUI app but for debugging the service so do not want to use Forms::Application. Best Regards, SZ -- 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] THttpServer under ICSv7 and BCB2007
Fastream Technologies wrote: Also FYI: I have defined in both gui app and package NOFORMS;USE_SSL;NO_ADVANCED_USE_OF_HTTP_CLIENT;SECURITY_WIN32;NO_DEBUG_LOG . The Delphi guys may say why don't you step into the code and debug but BCB2007 does not let me step into Delphi code in C++ projects. It is possible, as long as the path to the .pas files is known. I did this several times, however foregot the exact steps how to achieve that. It was easy anyway. From memory, when you step in with F7 C++ Builder even pops up a dialog where you can enter the correct path if not yet set up somewhere in the options. -- Arno Garrels Regards, Gorkem Ates On 5/11/09, Fastream Technologies ga...@fastream.com wrote: Hello, I have an upgraded code from v6. The below line: adminHTTPServer = new THttpServer(NULL); causes AV (write of address 0014). Any idea what might have I done wrong? This is a GUI app but for debugging the service so do not want to use Forms::Application. Best Regards, SZ -- Gorkem Ates Fastream Technologies Software IQ: Innovation Quality www.fastream.com | Email: supp...@fastream.com | Tel: +90-312-223-2830 | MSN: g_a...@hotmail.com Join IQWF Server Yahoo group at http://groups.yahoo.com/group/IQWFServer Join IQ Reverse Proxy Yahoo group at http://groups.yahoo.com/group/IQReverseProxy -- 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] THttpCli bug -- reported earlier on another server, repeating behavior again
Hello, Ok the server is indeed IIS 5.1 and the direct url is: http://69.28.242.152:7979/otherroots/www.suckersluck.com/scripts which returns body with the HEAD command. ICS client handles this in a somewhat bad way--it seem to work with GUI but when you programmatically send GET after HEAD, it gets confused and there is a random call to OnRequestDone. I now remember a few years ago when IIS5 was popular I reported this and there was a fix done a that time--maybe not enough? Here is the problem routine: GetHeaderLineNext... ... else if FRequestType = httpHEAD then begin//AG 05/27/08 { With HEAD command, we don't expect a document } //AG 05/27/08 { but some server send one !} //AG 05/27/08 FReceiveLen := 0; { Cancel received data } //AG 05/27/08 StateChange(httpWaitingBody); //AG 05/27/08 FNext := nil; //AG 05/27/08 SetReady; //AG 05/27/08 THIS MUST BE CAUSE OF THE ONREQUESTDONE, RIGHT? BUT THE RECEIVED DATA IS STILL NOT CANCELLED SEE ARNO'S COMMENT İN FRECEIVELEN := 0; end //AG 05/27/08 else Regards,, SZ On 5/10/09, Fastream Technologies ga...@fastream.com wrote: Ok. There was no proxy in the lastest configuration I sent. So the issue is the Mystery server dislikes the HEAD command which ordinary browsers do not send and takes it as a hack attempt. Maybe there is a configuration option for this which the customer can tweak. Thank you, SZ On 5/10/09, Arno Garrels arno.garr...@gmx.de wrote: It's a server (or proxy) problem! Use a sniffer such as Wireshark if you don't believe it. After a long delay (timeout?) the server answers with a 404, and closes the connection. -- Arno Garrels Fastream Technologies wrote: Hello, Could you guys try this url and the below actions with your own httptst's? - www.suckersluck.com/scripts (returns 404 which is ok) - head - get - head (second head stalls) This occurs both when you do it programmatically and by hand! Please help! Best Regards, SZ -- -- 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] THttpCli bug -- reported earlier on another server, repeating behavior again
Fastream Technologies wrote: Here is the problem routine: Sorry I do not see a problem, since it is the server (or proxy) not responding. That's what my packet log showed yesterday. -- 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
Re: [twsocket] THttpServer under ICSv7 and BCB2007
The problem is I must run my C++ project with release config as otherwise it gives av due to memory fragmentation (HEAVY duty!). Regards, SZ On 5/11/09, Arno Garrels arno.garr...@gmx.de wrote: Fastream Technologies wrote: Also FYI: I have defined in both gui app and package NOFORMS;USE_SSL;NO_ADVANCED_USE_OF_HTTP_CLIENT;SECURITY_WIN32;NO_DEBUG_LOG . The Delphi guys may say why don't you step into the code and debug but BCB2007 does not let me step into Delphi code in C++ projects. It is possible, as long as the path to the .pas files is known. I did this several times, however foregot the exact steps how to achieve that. It was easy anyway. From memory, when you step in with F7 C++ Builder even pops up a dialog where you can enter the correct path if not yet set up somewhere in the options. -- Arno Garrels Regards, Gorkem Ates On 5/11/09, Fastream Technologies ga...@fastream.com wrote: Hello, I have an upgraded code from v6. The below line: adminHTTPServer = new THttpServer(NULL); causes AV (write of address 0014). Any idea what might have I done wrong? This is a GUI app but for debugging the service so do not want to use Forms::Application. Best Regards, SZ -- 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] THttpServer under ICSv7 and BCB2007
Fastream Technologies wrote: The problem is I must run my C++ project with release config as otherwise it gives av due to memory fragmentation (HEAVY duty!). If you want to debug, debug information have to be included, that's true. But those AVs are IMO a hint that something went rather wrong in your code, though I'm not very familiar with C++ Builder. -- Arno Garrels Regards, SZ On 5/11/09, Arno Garrels arno.garr...@gmx.de wrote: Fastream Technologies wrote: Also FYI: I have defined in both gui app and package NOFORMS;USE_SSL;NO_ADVANCED_USE_OF_HTTP_CLIENT;SECURITY_WIN32;NO_DEBUG_LOG . The Delphi guys may say why don't you step into the code and debug but BCB2007 does not let me step into Delphi code in C++ projects. It is possible, as long as the path to the .pas files is known. I did this several times, however foregot the exact steps how to achieve that. It was easy anyway. From memory, when you step in with F7 C++ Builder even pops up a dialog where you can enter the correct path if not yet set up somewhere in the options. -- Arno Garrels Regards, Gorkem Ates On 5/11/09, Fastream Technologies ga...@fastream.com wrote: Hello, I have an upgraded code from v6. The below line: adminHTTPServer = new THttpServer(NULL); causes AV (write of address 0014). Any idea what might have I done wrong? This is a GUI app but for debugging the service so do not want to use Forms::Application. Best Regards, SZ -- 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] THttpCli bug -- reported earlier on another server, repeating behavior again
Arno, Yesterday I sent you a wrong url! This new url is the direct IIS 5.1 url which returns body in HEAD response and it confuses thttpcli. Regards, SZ On 5/11/09, Arno Garrels arno.garr...@gmx.de wrote: Fastream Technologies wrote: Here is the problem routine: Sorry I do not see a problem, since it is the server (or proxy) not responding. That's what my packet log showed yesterday. -- 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
Re: [twsocket] THttpServer under ICSv7 and BCB2007
Hi, On 5/11/09, Arno Garrels arno.garr...@gmx.de wrote: Fastream Technologies wrote: The problem is I must run my C++ project with release config as otherwise it gives av due to memory fragmentation (HEAVY duty!). If you want to debug, debug information have to be included, that's true. But those AVs are IMO a hint that something went rather wrong in your code, though I'm not very familiar with C++ Builder. Long time ago, I read that mt apps with much RAM usage is causing these... What BCB enables for C++ code is debugging for optimized code. However, this is not the case with Pascal code. Regards, SZ -- Arno Garrels Regards, SZ On 5/11/09, Arno Garrels arno.garr...@gmx.de wrote: Fastream Technologies wrote: Also FYI: I have defined in both gui app and package NOFORMS;USE_SSL;NO_ADVANCED_USE_OF_HTTP_CLIENT;SECURITY_WIN32;NO_DEBUG_LOG . The Delphi guys may say why don't you step into the code and debug but BCB2007 does not let me step into Delphi code in C++ projects. It is possible, as long as the path to the .pas files is known. I did this several times, however foregot the exact steps how to achieve that. It was easy anyway. From memory, when you step in with F7 C++ Builder even pops up a dialog where you can enter the correct path if not yet set up somewhere in the options. -- Arno Garrels Regards, Gorkem Ates On 5/11/09, Fastream Technologies ga...@fastream.com wrote: Hello, I have an upgraded code from v6. The below line: adminHTTPServer = new THttpServer(NULL); causes AV (write of address 0014). Any idea what might have I done wrong? This is a GUI app but for debugging the service so do not want to use Forms::Application. Best Regards, SZ -- -- 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] THttpCli bug -- reported earlier on another server, repeating behavior again
Fastream Technologies wrote: Arno, Yesterday I sent you a wrong url! This new url is the direct IIS 5.1 url which returns body in HEAD response and it confuses thttpcli. It does not, just tested with V7 Httptst demo. Multiple GET/HEAD requests w/o any problem! -- 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
Re: [twsocket] THttpServer under ICSv7 and BCB2007
If you are getting AV's use something like EurekaLog to trap and report them with a call stack. https://www.eurekalog.com/index.php I use this all the time, saves tons of time tracking these things down. Worth every penny/euro. Matt -Original Message- From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On Behalf Of Fastream Technologies Sent: Monday, May 11, 2009 1:10 PM To: ICS support mailing Subject: Re: [twsocket] THttpServer under ICSv7 and BCB2007 Hi, On 5/11/09, Arno Garrels arno.garr...@gmx.de wrote: Fastream Technologies wrote: The problem is I must run my C++ project with release config as otherwise it gives av due to memory fragmentation (HEAVY duty!). If you want to debug, debug information have to be included, that's true. But those AVs are IMO a hint that something went rather wrong in your code, though I'm not very familiar with C++ Builder. Long time ago, I read that mt apps with much RAM usage is causing these... What BCB enables for C++ code is debugging for optimized code. However, this is not the case with Pascal code. Regards, SZ -- Arno Garrels Regards, SZ On 5/11/09, Arno Garrels arno.garr...@gmx.de wrote: Fastream Technologies wrote: Also FYI: I have defined in both gui app and package NOFORMS;USE_SSL;NO_ADVANCED_USE_OF_HTTP_CLIENT;SECURITY_WIN32;NO_DE BUG_LOG . The Delphi guys may say why don't you step into the code and debug but BCB2007 does not let me step into Delphi code in C++ projects. It is possible, as long as the path to the .pas files is known. I did this several times, however foregot the exact steps how to achieve that. It was easy anyway. From memory, when you step in with F7 C++ Builder even pops up a dialog where you can enter the correct path if not yet set up somewhere in the options. -- Arno Garrels Regards, Gorkem Ates On 5/11/09, Fastream Technologies ga...@fastream.com wrote: Hello, I have an upgraded code from v6. The below line: adminHTTPServer = new THttpServer(NULL); causes AV (write of address 0014). Any idea what might have I done wrong? This is a GUI app but for debugging the service so do not want to use Forms::Application. Best Regards, SZ -- -- 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] THttpCli bug -- reported earlier on another server, repeating behavior again
In my case, I get data from first head being pending in second head/GET. I know it is weird/rare case yet this customer was annoyed and he led us to panic even more... On 5/11/09, Arno Garrels arno.garr...@gmx.de wrote: Fastream Technologies wrote: Arno, Yesterday I sent you a wrong url! This new url is the direct IIS 5.1 url which returns body in HEAD response and it confuses thttpcli. It does not, just tested with V7 Httptst demo. Multiple GET/HEAD requests w/o any problem! -- 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 -- Gorkem Ates Fastream Technologies Software IQ: Innovation Quality www.fastream.com | Email: supp...@fastream.com | Tel: +90-312-223-2830 | MSN: g_a...@hotmail.com Join IQWF Server Yahoo group at http://groups.yahoo.com/group/IQWFServer Join IQ Reverse Proxy Yahoo group at http://groups.yahoo.com/group/IQReverseProxy -- 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