Re: StreamWriter closes MemoryStream???
From: Dennis Myrén (dennis_at_oslokb.no)
Date: 05/14/04
- Next message: Brent Stevenson: "Launching IE from a Winform"
- Previous message: Bob Rock: "Deserialize method that "loads" the class instance itself: how???"
- In reply to: Bob Rock: "StreamWriter closes MemoryStream???"
- Next in thread: DalePres: "Re: StreamWriter closes MemoryStream???"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 14 May 2004 13:58:50 +0200
When calling Close,
the underlying System.IO.Stream is closed.
You should only call Close() on that base stream, when you dont need it
more.
"Bob Rock" <nospam.yet_another_apprentice@hotmail.com> wrote in message
news:%23NnOdhaOEHA.2844@tk2msftngp13.phx.gbl...
> Hello,
>
> I've noticed that after calling the Close method on a StreamWriter, I get
> exceptions on any operation I might request on the associated stream (with
a
> message "Cannot access a closed Stream"). Is this the behaviour I must
> expect? Nothing is said on the documentation.
>
>
> Bob Rock
>
>
- Next message: Brent Stevenson: "Launching IE from a Winform"
- Previous message: Bob Rock: "Deserialize method that "loads" the class instance itself: how???"
- In reply to: Bob Rock: "StreamWriter closes MemoryStream???"
- Next in thread: DalePres: "Re: StreamWriter closes MemoryStream???"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|