Re: [twsocket] SMTPCli within a NT service - stack overflow

2005-06-14 Thread Moacir Flávio Gonçalves
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

Re: [twsocket] SMTPCli within a NT service - stack overflow

2005-06-14 Thread Moacir Flávio Gonçalves
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 c

Re: [twsocket] SMTPCli within a NT service - stack overflow

2005-06-14 Thread Moacir Flávio Gonçalves
I'm not sure I fully understand your program's logic. But instead of the delay, I would use a custom message to queue the request which will be executed cleanly after all current events and subroutines are done. Ok, I´ll explain better. There are 3 programs envolved. 1-DataServer (DS)- Talks t

Re: [twsocket] SMTPCli within a NT service - stack overflow

2005-06-13 Thread Moacir Flávio Gonçalves
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)

Re: [twsocket] SMTPCli within a NT service - stack overflow

2005-06-13 Thread Moacir Flávio Gonçalves
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." - Origi

[twsocket] SMTPCli within a NT service - stack overflow

2005-06-13 Thread Moacir Flávio Gonçalves
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, bec

Re: [twsocket] HTTPCli working different in new version?

2005-06-10 Thread Moacir Flávio Gonçalves
I´m assuming in the application that if a response is 401, THttpCli will try a second time to authenticate, and, if, in the second time, if another 401 arrive, then the user/password is wrong... it´s the way it´s working? - Original Message - From: "Moacir Flávio Gonçalves" <[EMAIL PRO

[twsocket] HTTPCli working different in new version?

2005-06-09 Thread Moacir Flávio Gonçalves
Well, in the previous version (dont known how old) of THttpCli, my software was running ok, but in the new version I am getting a little problem: When I "Get" some file like: http://user:[EMAIL PROTECTED], in the OnDocData I first receive: ' 401 Authorization Required Authorization Required Th

Re: [twsocket] Is there a way to download a file in threads?

2005-04-13 Thread Moacir Flávio Gonçalves
Yes, I mean temporary files, joining them when finished the parts 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: "Dan" <[EMAIL P

Re: [twsocket] Is there a way to download a file in threads?

2005-04-13 Thread Moacir Flávio Gonçalves
Well, I'm doing a guess here, thinking that must be a clever way to do it, BUT, I think, if you create 1 file with 33% of junk (just set one byte at the position), another with 66%, then CONTINUE downloading the 3 of then until the start of the next (controling with progress)... Finally, join in

[twsocket] FTP RestGetAsync problem?

2005-04-06 Thread Moacir Flávio Gonçalves
I was doing a RestAsync and get a error "ftp component not ready". When debugging I find a State ftpPasvReady when it just call RestAsync, and the function CheckReady only accept ftpReady and ftpInternalReady. What I had donw wrong? my code only call RestGetAsync, like said in the comments in the s