Click here to Skip to main content
16,004,882 members
Home / Discussions / C#
   

C#

 
GeneralRe: How I Can Design this Form ? Pin
mm31012-Mar-06 8:59
mm31012-Mar-06 8:59 
GeneralRe: How I Can Design this Form ? Pin
Luis Alonso Ramos12-Mar-06 17:35
Luis Alonso Ramos12-Mar-06 17:35 
QuestionIIS Access denies Pin
mohdmeraj12-Mar-06 3:46
mohdmeraj12-Mar-06 3:46 
AnswerRe: IIS Access denies Pin
Dave Kreskowiak12-Mar-06 16:28
mveDave Kreskowiak12-Mar-06 16:28 
AnswerRe: IIS Access denies Pin
Luis Alonso Ramos12-Mar-06 17:38
Luis Alonso Ramos12-Mar-06 17:38 
QuestionGZipStream, CryptoStream and NetworkStream interaction Pin
Marc Clifton12-Mar-06 2:59
mvaMarc Clifton12-Mar-06 2:59 
AnswerRe: GZipStream, CryptoStream and NetworkStream interaction Pin
Ed.Poore12-Mar-06 4:54
Ed.Poore12-Mar-06 4:54 
GeneralRe: GZipStream, CryptoStream and NetworkStream interaction Pin
Marc Clifton12-Mar-06 7:14
mvaMarc Clifton12-Mar-06 7:14 
Thanks for the feedback. BaseStream.Close also immediately caused the memory stream to be disposed.

This line in MSDN By default, GZipStream owns the underlying stream, so closing the stream parameter also closes the underlying stream. would make believe that the stream would remain open if I use the constructor that sets the "leave stream open" flag to true.

And indeed, it does leave the stream open. On further research, the problem appears to be in the CryptoStream--the NetStream reader isn't retrieving the data unless I explicitly close the CryptoStream on the writer.

But if I shove everything into a MemoryStream, then it works fine.

I swear, it's got to be me, but I can't see what I'm doing wrong!

Marc

Pensieve
Functional Entanglement vs. Code Entanglement
Static Classes Make For Rigid Architectures
GeneralRe: GZipStream, CryptoStream and NetworkStream interaction Pin
Ed.Poore12-Mar-06 7:40
Ed.Poore12-Mar-06 7:40 
GeneralRe: GZipStream, CryptoStream and NetworkStream interaction Pin
Marc Clifton12-Mar-06 7:44
mvaMarc Clifton12-Mar-06 7:44 
GeneralRe: GZipStream, CryptoStream and NetworkStream interaction Pin
Ed.Poore12-Mar-06 7:51
Ed.Poore12-Mar-06 7:51 
GeneralRe: GZipStream, CryptoStream and NetworkStream interaction Pin
Marc Clifton12-Mar-06 10:28
mvaMarc Clifton12-Mar-06 10:28 
GeneralRe: GZipStream, CryptoStream and NetworkStream interaction Pin
Ed.Poore12-Mar-06 11:11
Ed.Poore12-Mar-06 11:11 
QuestionConstructors Pin
AJ12312-Mar-06 1:58
AJ12312-Mar-06 1:58 
AnswerRe: Constructors Pin
Colin Angus Mackay12-Mar-06 2:11
Colin Angus Mackay12-Mar-06 2:11 
GeneralRe: Constructors Pin
AJ12312-Mar-06 2:31
AJ12312-Mar-06 2:31 
QuestionTransperent window Pin
NaNg1524112-Mar-06 0:37
NaNg1524112-Mar-06 0:37 
AnswerRe: Transperent window Pin
Robin Panther12-Mar-06 2:48
Robin Panther12-Mar-06 2:48 
GeneralRe: Transperent window Pin
NaNg1524112-Mar-06 6:09
NaNg1524112-Mar-06 6:09 
AnswerRe: Transperent window Pin
Luis Alonso Ramos12-Mar-06 17:42
Luis Alonso Ramos12-Mar-06 17:42 
AnswerRe: Transperent window Pin
Luis Alonso Ramos13-Mar-06 9:52
Luis Alonso Ramos13-Mar-06 9:52 
QuestionPropertyGrid Mouse Events not behaving Pin
hype_rides12-Mar-06 0:06
hype_rides12-Mar-06 0:06 
AnswerRe: PropertyGrid Mouse Events not behaving Pin
Ed.Poore12-Mar-06 4:42
Ed.Poore12-Mar-06 4:42 
QuestionDataGrid & ListView Pin
mehrdadc4811-Mar-06 20:33
mehrdadc4811-Mar-06 20:33 
QuestionCollection & Datagrid Pin
mehrdadc4811-Mar-06 20:16
mehrdadc4811-Mar-06 20:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.