Re: [twsocket] SMTPCli within a NT service - stack overflow
It's won't help you, but I have complex NT services doing several SQL database updates a second from packets received by TWSocket, and more rarely sending email using SMPTCli, and they run for weeks at a time without problems. I don't use threads, they are not necessary despite our level of traffic. Angus -- 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] SMTPCli within a NT service - stack overflow
yes, the DataServer I commented is doing well, no problem at all, even with all thread complexity involved... the problem is the location of the smtp.connect, inside or outside the ondataavailable. I do the threading because some processing can be very cpu time consuming in the DS, so another clients continue to be attended by main thread while others are being in the others threads, thanks anyway angus Flavio Rm 12:2 - E não vos conformeis com este século, mas transformai-vos pela renovação da vossa mente, para que experimenteis qual seja a boa, agradável e perfeita vontade de Deus. - Original Message - From: Angus Robertson - Magenta Systems Ltd [EMAIL PROTECTED] To: twsocket@elists.org Sent: Tuesday, June 14, 2005 10:01 AM Subject: Re: [twsocket] SMTPCli within a NT service - stack overflow It's won't help you, but I have complex NT services doing several SQL database updates a second from packets received by TWSocket, and more rarely sending email using SMPTCli, and they run for weeks at a time without problems. I don't use threads, they are not necessary despite our level of traffic. Angus -- 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 -- 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] SMTPCli within a NT service - stack overflow
Starting again... sorry by the inconvenience, the SMTP isn´t triggering the problem, it only make it show faster... I´m going to my bug hunt now... Thanks Flavio Rm 12:2 - E não vos conformeis com este século, mas transformai-vos pela renovação da vossa mente, para que experimenteis qual seja a boa, agradável e perfeita vontade de Deus. - Original Message - From: Moacir Flávio Gonçalves [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Tuesday, June 14, 2005 9:24 AM Subject: Re: [twsocket] SMTPCli within a NT service - stack overflow yes, the DataServer I commented is doing well, no problem at all, even with all thread complexity involved... the problem is the location of the smtp.connect, inside or outside the ondataavailable. I do the threading because some processing can be very cpu time consuming in the DS, so another clients continue to be attended by main thread while others are being in the others threads, thanks anyway angus Flavio Rm 12:2 - E não vos conformeis com este século, mas transformai-vos pela renovação da vossa mente, para que experimenteis qual seja a boa, agradável e perfeita vontade de Deus. - Original Message - From: Angus Robertson - Magenta Systems Ltd [EMAIL PROTECTED] To: twsocket@elists.org Sent: Tuesday, June 14, 2005 10:01 AM Subject: Re: [twsocket] SMTPCli within a NT service - stack overflow It's won't help you, but I have complex NT services doing several SQL database updates a second from packets received by TWSocket, and more rarely sending email using SMPTCli, and they run for weeks at a time without problems. I don't use threads, they are not necessary despite our level of traffic. Angus -- 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 -- 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 -- 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] SMTPCli within a NT service - stack overflow
The HTTPCli 401 problem (triggered twice is resolved, thanks a lot)... Now I'm experiencing another problem with a SMTP. It's inside a NT service. The problem occurs after I send any email, in another thread then the current one. It's like if a message was sent but with any kind of problem, because the thread goes stack overflow, calling again and again with parameters 0,0,0 (have look at the call stack), like if a message nil or some kind of was sent, don't know; I do not get when its triggered yet... but I'm looking into... I´m thinking it´s about the WndProc of the SMTPCli, because the problem trigger only after I send a email Someone has a clue? Flavio Rm 12:2 - E não vos conformeis com este século, mas transformai-vos pela renovação da vossa mente, para que experimenteis qual seja a boa, agradável e perfeita vontade de Deus. -- 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] SMTPCli within a NT service - stack overflow
No idea. Can you write a very small test program that reproduce your problem ? btw: I use SMTP in service apps without any problem. -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: Moacir Flávio Gonçalves [EMAIL PROTECTED] To: twsocket@elists.org Sent: Monday, June 13, 2005 1:42 PM Subject: [twsocket] SMTPCli within a NT service - stack overflow The HTTPCli 401 problem (triggered twice is resolved, thanks a lot)... Now I'm experiencing another problem with a SMTP. It's inside a NT service. The problem occurs after I send any email, in another thread then the current one. It's like if a message was sent but with any kind of problem, because the thread goes stack overflow, calling again and again with parameters 0,0,0 (have look at the call stack), like if a message nil or some kind of was sent, don't know; I do not get when its triggered yet... but I'm looking into... I´m thinking it´s about the WndProc of the SMTPCli, because the problem trigger only after I send a email Someone has a clue? Flavio Rm 12:2 - E não vos conformeis com este século, mas transformai-vos pela renovação da vossa mente, para que experimenteis qual seja a boa, agradável e perfeita vontade de Deus. -- 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 -- 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] SMTPCli within a NT service - stack overflow
Good! I will, but, meanwhile, I use delphi 7, no update... I´ll make a version available Thanks Flavio Rm 12:2 - E não vos conformeis com este século, mas transformai-vos pela renovação da vossa mente, para que experimenteis qual seja a boa, agradável e perfeita vontade de Deus. - Original Message - From: Francois PIETTE [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Monday, June 13, 2005 1:00 PM Subject: Re: [twsocket] SMTPCli within a NT service - stack overflow No idea. Can you write a very small test program that reproduce your problem ? btw: I use SMTP in service apps without any problem. -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: Moacir Flávio Gonçalves [EMAIL PROTECTED] To: twsocket@elists.org Sent: Monday, June 13, 2005 1:42 PM Subject: [twsocket] SMTPCli within a NT service - stack overflow The HTTPCli 401 problem (triggered twice is resolved, thanks a lot)... Now I'm experiencing another problem with a SMTP. It's inside a NT service. The problem occurs after I send any email, in another thread then the current one. It's like if a message was sent but with any kind of problem, because the thread goes stack overflow, calling again and again with parameters 0,0,0 (have look at the call stack), like if a message nil or some kind of was sent, don't know; I do not get when its triggered yet... but I'm looking into... I´m thinking it´s about the WndProc of the SMTPCli, because the problem trigger only after I send a email Someone has a clue? Flavio Rm 12:2 - E não vos conformeis com este século, mas transformai-vos pela renovação da vossa mente, para que experimenteis qual seja a boa, agradável e perfeita vontade de Deus. -- 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 -- 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 -- 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] SMTPCli within a NT service - stack overflow
Well, I think I found the problem. When I write a small application it works fine. But in my software it isn´t... The app is a server and have a listening socket, a client socket and a smtp client. When a client of the app send a message, the app sends a request of data to another app (data base) and saves a callback function for answer de client when DB answers... When DB answer, the app call the callback function (inside the client socket event) and then start de connect of the smtp, but, the other commands of the smtp occurs out of the event of the socket client. I put a delayed call to the smtp.connect (to occurs outside the event) and... magic! works... well, don´t understand why, anyway, I will test more, but it´s working now... Flavio Rm 12:2 - E não vos conformeis com este século, mas transformai-vos pela renovação da vossa mente, para que experimenteis qual seja a boa, agradável e perfeita vontade de Deus. - Original Message - From: Moacir Flávio Gonçalves [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Monday, June 13, 2005 1:17 PM Subject: Re: [twsocket] SMTPCli within a NT service - stack overflow Good! I will, but, meanwhile, I use delphi 7, no update... I´ll make a version available Thanks Flavio Rm 12:2 - E não vos conformeis com este século, mas transformai-vos pela renovação da vossa mente, para que experimenteis qual seja a boa, agradável e perfeita vontade de Deus. - Original Message - From: Francois PIETTE [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Monday, June 13, 2005 1:00 PM Subject: Re: [twsocket] SMTPCli within a NT service - stack overflow No idea. Can you write a very small test program that reproduce your problem ? btw: I use SMTP in service apps without any problem. -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: Moacir Flávio Gonçalves [EMAIL PROTECTED] To: twsocket@elists.org Sent: Monday, June 13, 2005 1:42 PM Subject: [twsocket] SMTPCli within a NT service - stack overflow The HTTPCli 401 problem (triggered twice is resolved, thanks a lot)... Now I'm experiencing another problem with a SMTP. It's inside a NT service. The problem occurs after I send any email, in another thread then the current one. It's like if a message was sent but with any kind of problem, because the thread goes stack overflow, calling again and again with parameters 0,0,0 (have look at the call stack), like if a message nil or some kind of was sent, don't know; I do not get when its triggered yet... but I'm looking into... I´m thinking it´s about the WndProc of the SMTPCli, because the problem trigger only after I send a email Someone has a clue? Flavio Rm 12:2 - E não vos conformeis com este século, mas transformai-vos pela renovação da vossa mente, para que experimenteis qual seja a boa, agradável e perfeita vontade de Deus. -- 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 -- 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 -- 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 -- 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