Hi Angus, 

> Another technique is to save the content yourself in the onDocData event, 
> leaving RcvdStream set to null, then you can use your own error handling. 

Excellent. This is exactly what I was looking for (I did not realize that
leaving RcvdStream set to NULL would allow me to take care of writing the
file myself).

Thank you.

Kris 

--
** Kris Schoofs   -   [EMAIL PROTECTED]
Don't forget to visit http://DVD.Identifier.CDfreaks.Com **
 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Angus Robertson - Magenta Systems Ltd
Sent: zaterdag 4 maart 2006 12:25
To: twsocket@elists.org
Subject: Re: [twsocket] Catching 'Stream write error' exception inCtrlSocket
from within Ht

> To summarize : the problem I'm having is that I cannot detect that a 
> 'stream write error' (e.g. due to insufficient disc space) has been 
> encountered

If your application is downloading large files, it would be much better to
check for sufficient disk space when the header is downloaded  using
OnHeaderData and abort the transfer before disk space expires.  

Or you can use the onDocData progress event or a timer to check disk space
every few seconds, and again abort when it gets to less than one meg or
something.  

Another technique is to save the content yourself in the onDocData event,
leaving RcvdStream set to null, then you can use your own error handling. 

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

Reply via email to