Click here to Skip to main content
15,860,861 members
Home / Discussions / C#
   

C#

 
GeneralRe: GDI+ doublebuffering isnt stopping flicker :( Pin
JDUK19-Apr-05 11:12
JDUK19-Apr-05 11:12 
GeneralDockable / Floating / Collapsable Controls - Where to begin Pin
Tristan Rhodes19-Apr-05 2:04
Tristan Rhodes19-Apr-05 2:04 
GeneralRe: Dockable / Floating / Collapsable Controls - Where to begin Pin
leppie19-Apr-05 5:21
leppie19-Apr-05 5:21 
QuestionIs this how MemoryStreams works? Pin
Snowjim19-Apr-05 0:02
Snowjim19-Apr-05 0:02 
AnswerRe: Is this how MemoryStreams works? Pin
leppie19-Apr-05 5:19
leppie19-Apr-05 5:19 
GeneralRe: Is this how MemoryStreams works? Pin
Snowjim19-Apr-05 5:30
Snowjim19-Apr-05 5:30 
GeneralRe: Is this how MemoryStreams works? Pin
Steven Campbell19-Apr-05 6:42
Steven Campbell19-Apr-05 6:42 
QuestionWriting and Reading on MemoryStream? Pin
Snowjim18-Apr-05 23:57
Snowjim18-Apr-05 23:57 
Hey!

I need to write to a MemoryStream from one part of my program and in another i whant to read this data form the MemoryStream.

This is how i write byte to the MemoryStreams
<br />
        public override void WriteByte(byte value)<br />
        {<br />
            try<br />
            {<br />
                s.WriteByte(value);<br />
<br />
                foreach (UnitStream unit in StreamCollection)<br />
                {<br />
                    if (unit.getUnitStream.CanWrite)<br />
                        unit.getUnitStream.WriteByte(value);<br />
                }<br />
            }<br />
            catch (Exception ex)<br />
            {<br />
                addError("Error in PhoneConnector - MutliStream - Write : " + ex.Message);<br />
            }<br />
        }<br />


When i am pasing data in to this function it writes it to the MemoryStreams(collection), but when i am lookin on the MemoryStreams ther is no data written to them?

I m a doing wrong?

BestRegards
Jimmy
AnswerRe: Writing and Reading on MemoryStream? Pin
leppie19-Apr-05 5:13
leppie19-Apr-05 5:13 
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 
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 -&gt; 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 

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.