Click here to Skip to main content
15,885,278 members
Home / Discussions / C#
   

C#

 
GeneralRe: Writing and Reading on MemoryStream? Pin
Snowjim19-Apr-05 5:28
Snowjim19-Apr-05 5:28 
GeneralRe: Writing and Reading on MemoryStream? Pin
Stefan Troschuetz19-Apr-05 8:43
Stefan Troschuetz19-Apr-05 8:43 
GeneralRe: Writing and Reading on MemoryStream? Pin
Stefan Troschuetz19-Apr-05 8:44
Stefan Troschuetz19-Apr-05 8:44 
GeneralRe: Writing and Reading on MemoryStream? Pin
Snowjim19-Apr-05 9:03
Snowjim19-Apr-05 9:03 
GeneralRe: Writing and Reading on MemoryStream? Pin
Stefan Troschuetz19-Apr-05 9:12
Stefan Troschuetz19-Apr-05 9:12 
GeneralRe: Writing and Reading on MemoryStream? Pin
Scott Serl19-Apr-05 9:40
Scott Serl19-Apr-05 9:40 
GeneralRe: Writing and Reading on MemoryStream? Pin
Snowjim19-Apr-05 10:16
Snowjim19-Apr-05 10:16 
GeneralRe: Writing and Reading on MemoryStream? Pin
Scott Serl19-Apr-05 11:35
Scott Serl19-Apr-05 11:35 
There is definately something wrong if the Length and Position do not change after a write. I don't know what is wrong. Try looking at the data in the command window before and after a write. Use the exact same syntax in the command window as in the program for accessing the memory stream.

Maybe there is something wrong in the code where the memory streams are instanciated.

Yes, you need to manage the positions you read from separately. You could do so in a class you derive from memory stream and manage the positions so you don't have to keep track at both ends.
GeneralRe: Writing and Reading on MemoryStream? Pin
Snowjim20-Apr-05 3:50
Snowjim20-Apr-05 3:50 
GeneralRe: Writing and Reading on MemoryStream? Pin
Scott Serl20-Apr-05 8:29
Scott Serl20-Apr-05 8:29 
GeneralRe: Writing and Reading on MemoryStream? Pin
Snowjim20-Apr-05 8:40
Snowjim20-Apr-05 8:40 
GeneralRe: Writing and Reading on MemoryStream? Pin
Scott Serl20-Apr-05 11:04
Scott Serl20-Apr-05 11:04 
GeneralRe: Writing and Reading on MemoryStream? Pin
Snowjim20-Apr-05 11:42
Snowjim20-Apr-05 11:42 
GeneralRe: Writing and Reading on MemoryStream? Pin
Scott Serl21-Apr-05 8:22
Scott Serl21-Apr-05 8:22 
GeneralCrystalReports From Pull -> Push Pin
V.18-Apr-05 23:49
professionalV.18-Apr-05 23:49 
GeneralFilling the Textbox Pin
Anonymous18-Apr-05 23:36
Anonymous18-Apr-05 23:36 
Generalplease help me with this Pin
snouto18-Apr-05 23:28
snouto18-Apr-05 23:28 
GeneralRe: please help me with this Pin
S. Senthil Kumar19-Apr-05 0:52
S. Senthil Kumar19-Apr-05 0:52 
GeneralTransparent ListBoxes Pin
zagzagzag18-Apr-05 23:24
zagzagzag18-Apr-05 23:24 
GeneralRe: Transparent ListBoxes Pin
Anonymous19-Apr-05 1:05
Anonymous19-Apr-05 1:05 
GeneralRe: Transparent ListBoxes Pin
Dave Kreskowiak19-Apr-05 4:19
mveDave Kreskowiak19-Apr-05 4:19 
GeneralRe: Transparent ListBoxes Pin
zagzagzag19-Apr-05 9:10
zagzagzag19-Apr-05 9:10 
GeneralMusic Programming Pin
Deniz Oflaz18-Apr-05 23:11
Deniz Oflaz18-Apr-05 23:11 
GeneralRe: Music Programming Pin
pjc*19-Apr-05 3:27
pjc*19-Apr-05 3:27 
GeneralRe: Music Programming Pin
RNEELY19-Apr-05 4:13
RNEELY19-Apr-05 4:13 

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.