Re: [twsocket] OnDataAvailable and Reetrancy

2006-08-31 Thread Francois Piette
> I don't call processmessages and the like directly in the event but > might output some lines on screen for debugging. Could the VCL maybe > call getmessage etc. behind my back in this scenario? You can safely add a line to a memo. You can't display a dialog box or a modal form. You can detect r

Re: [twsocket] OnDataAvailable and Reetrancy

2006-08-31 Thread Arno Garrels
Markus Humm wrote: > I don't call processmessages and the like directly in the event but > might output some lines on screen for debugging. How? ShowMessage is a modal form. > > Other thing: what about critical sections. Would they be safe for > preventing this in my situation? No, critical

[twsocket] OnDataAvailable and Reetrancy

2006-08-31 Thread Markus Humm
> Can OnDataAvailable be called while it is > > already running? > > And if yes, how to prevent this? Is using critical > > sections a good idea here? > You must avoid having the events reentered. To avoid this, you simply > have > to _not_ call any form of the message pump from the events. The >

Re: [twsocket] FTP resuming transfers

2006-08-31 Thread Francois PIETTE
>> Do you mean it could be smaller than his previous size >> when resuming a transfert ? > > Yes, that's what I mean and the question :)) If a resumed transfer is smaller than the existing file, then there is a problem ! It is likely that the start of the local file is no more the same as the co

Re: [twsocket] Where is best to ask general Delphi questions?

2006-08-31 Thread Info 2004
Francois, Thanks. I'll take a look. ...Andy Francois PIETTE wrote: >> The Delphi and Delphi-Talk elists seem rather quiet. > > Delphi mailing list is still a very good place. A lot of users are still > subscribers and wake up when needed. > Forget about Delphi-Talk which is unmoderated. > >> W

Re: [twsocket] FTP resuming transfers

2006-08-31 Thread Arno Garrels
Francois PIETTE wrote: >> I reworked the streams stuff in both FTP C/S today and >> fixed some bugs, everything was tested sucessfully with >> 64-bit streams. There's only one question I cannot answer >> by myself. >> TFileStream in mode fmOpenWrite does not set its size >> to current position when

Re: [twsocket] Where is best to ask general Delphi questions?

2006-08-31 Thread Francois PIETTE
> The Delphi and Delphi-Talk elists seem rather quiet. Delphi mailing list is still a very good place. A lot of users are still subscribers and wake up when needed. Forget about Delphi-Talk which is unmoderated. > Where is the best place to ask general Delphi questions - along the > lines of who

[twsocket] Where is best to ask general Delphi questions?

2006-08-31 Thread Info 2004
Hi, The Delphi and Delphi-Talk elists seem rather quiet. Where is the best place to ask general Delphi questions - along the lines of who has used a good SVG component etc? Regards, Andy -- ASA Micros Ltd. 141 Wardle Road, Wardle, Rochdale. OL12 9JA UK Tel: +44(0)1706 355057 Company No. 4722

Re: [twsocket] FTP resuming transfers

2006-08-31 Thread Francois PIETTE
> I reworked the streams stuff in both FTP C/S today and > fixed some bugs, everything was tested sucessfully with > 64-bit streams. There's only one question I cannot answer > by myself. > TFileStream in mode fmOpenWrite does not set its size > to current position when it is destroyed. Won't it ma

Re: [twsocket] OnDataAvailable and reetrancy

2006-08-31 Thread Francois PIETTE
> Can OnDataAvailable be called while it is > already running? > And if yes, how to prevent this? Is using critical > sections a good idea here? You must avoid having the events reentered. To avoid this, you simply have to _not_ call any form of the message pump from the events. The message pump

Re: [twsocket] FTP resuming transfers

2006-08-31 Thread Fastream Technologies
Yes, I believe you can safely set the Size property manually as a workaround. That's what I do! Regards, Sz - Original Message - From: "Arno Garrels" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Thursday, August 31, 2006 9:37 PM Subject: Re: [twsocket] FTP resuming transfers

Re: [twsocket] FTP resuming transfers

2006-08-31 Thread Arno Garrels
Fastream Technologies wrote: > AFAIK, ICS v6 is only for D/BCB6+ and ICSv5 is going to get > abondoned. So no need to worry! :)) Have you really read my question?? > > Best Regards, > > SZ > > - Original Message - > From: "Arno Garrels" <[EMAIL PROTECTED]> > To: "ICS support mailing"

Re: [twsocket] FTP resuming transfers

2006-08-31 Thread Fastream Technologies
AFAIK, ICS v6 is only for D/BCB6+ and ICSv5 is going to get abondoned. So no need to worry! :)) Best Regards, SZ - Original Message - From: "Arno Garrels" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Thursday, August 31, 2006 9:27 PM Subject: [twsocket] FTP resuming transfers

[twsocket] FTP resuming transfers

2006-08-31 Thread Arno Garrels
Hello, I reworked the streams stuff in both FTP C/S today and fixed some bugs, everything was tested sucessfully with 64-bit streams. There's only one question I cannot answer by myself. TFileStream in mode fmOpenWrite does not set its size to current position when it is destroyed. Won't it make

[twsocket] OnDataAvailable and reetrancy

2006-08-31 Thread Markus Humm
Hello, I've a server and a client app. which communicate through a TCP based protocoll I designed. The server get's requests which in OnDataAvailable are received into a 1500 Byte sized array (most time the app. will run on a LAN) whose contents is copied into a larger buffer then since the reque

Re: [twsocket] SMTPClient

2006-08-31 Thread Marcello Vezzelli
lalin ha scritto: > Hello, > I use SMTPClient for sending a email since a server with default smtp > server of IIS. The example program find this smtp server. But in my program, > with this code: > Smtp1.Host := smtpserver; > Smtp1.port := 'smpt'; > Smtp1.FromName := name; >

Re: [twsocket] SMTPClient

2006-08-31 Thread Bevan Edwards
Hi Carlos, Is the "Smtp1.port := 'smpt';" an error in your code or a typo? It should be "Smtp1.port := 'smtp';" Regards, Bevan lalin wrote: > Hello, > I use SMTPClient for sending a email since a server with default smtp > server of IIS. The example program find this smtp server. But

[twsocket] SMTPClient

2006-08-31 Thread lalin
Hello, I use SMTPClient for sending a email since a server with default smtp server of IIS. The example program find this smtp server. But in my program, with this code: Smtp1.Host := smtpserver; Smtp1.port := 'smpt'; Smtp1.FromName := name; Smtp1.HdrFrom := mail1; S