C Board  

Go Back   C Board > General Programming Boards > C# Programming

Closed Thread
 
LinkBack Thread Tools Display Modes
Old 04-23-2008, 11:00 PM   #1
Registered User
 
Join Date: May 2006
Posts: 1,579
Close an HTTPListenerResponse.OutputStreram

Hello everyone,


1.

When we close the HTTPListenerResponse.OutputStreram (using Close method, when complete writing content from server side), I think in the internal of CLR, there should be some flush work during Close method (I do not think each time when we write to the stream, data will be flushed immediately).

But the return type of Close is void and there is no exception thrown from Close from MSDN document for Close method, if Close fail, and means data is corrupted -- flush of data failed. How could we detect this situation?

2.

Any best practices to solve the issue when program server side code?


thanks in advance,
George
George2 is offline  
Closed Thread

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Play Mpg/WMV/etc. until completed, then close .exe -- A bit of help needed por favor Aeroflot C Programming 9 05-26-2009 12:40 PM
User input to close window NoFearXD Windows Programming 2 05-09-2007 07:38 PM
open() and close() SoFarAway C Programming 3 04-08-2005 01:16 PM
XWindows- Close window event? Exile Linux Programming 8 01-09-2005 10:39 PM
Ghost in the CD Drive Natase A Brief History of Cprogramming.com 17 10-12-2001 05:38 PM


All times are GMT -6. The time now is 04:40 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22