Re: [fpc-pascal] tstringlist.savetostream

2010-03-16 Thread José Mejuto
Hello FPC-Pascal,

Tuesday, March 16, 2010, 2:53:44 AM, you wrote:

TAH After running tstringlist.savetostream how can I make sure that the
TAH buffer has been flushed and data sent successfully?

If the call returns everything has been saved, if not an exception
should happend, but you can not know if data has been flushed to disk,
that's a task for your OS, so you must ask the OS about flushed data.

So in other words, if no exception, everything is saved. If you wish to
know if data is phisically written to media you must know the stream
media and ask the underlaying OS for information, but in this case the
stream mode is not the way to go because stream hides that
intentionally to the programmer (like hiding handles or any other OS
dependent data).

-- 
Best regards,
 José

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] tstringlist.savetostream

2010-03-15 Thread Terry A. Haimann
After running tstringlist.savetostream how can I make sure that the 
buffer has been flushed and data sent successfully?


Thx
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] tstringlist.savetostream

2010-03-15 Thread Zaher Dirkey
On Tue, Mar 16, 2010 at 3:53 AM, Terry A. Haimann
te...@haimannonline.comwrote:

 After running tstringlist.savetostream how can I make sure that the buffer
 has been flushed and data sent successfully?


That depend on the stream you passed to TStringList.SaveToStream


-- 
Zaher Dirkey
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal