Click here to Skip to main content
15,913,313 members
Home / Discussions / C#
   

C#

 
GeneralArrayList Madness Pin
eggie53-Jan-04 10:02
eggie53-Jan-04 10:02 
while(sReader.ReadLine()!=".")
{
    retrMessage.Add(sReader.ReadLine());
}


sReader, my StreamReader reads a network stream from a POP3 server one line at a time and adds it to my array retrMessage[].

Well, at least... it DID. I changed retrMessage from a string[], to an ArrayList. And now for some reason, only every other line is stored into the ArrayList (it skips lines).

Um, I'm assuming that this is an arraylist problem, because the string[] was handling it fine.

Does anybody have some inside on what's going on, and how I can fix this?

/\ |_ E X E GG
GeneralRe: ArrayList Madness Pin
leppie3-Jan-04 10:21
leppie3-Jan-04 10:21 
GeneralRe: ArrayList Madness Pin
eggie53-Jan-04 10:25
eggie53-Jan-04 10:25 
GeneralRe: ArrayList Madness Pin
leppie3-Jan-04 10:31
leppie3-Jan-04 10:31 
GeneralRe: ArrayList Madness Pin
eggie53-Jan-04 10:57
eggie53-Jan-04 10:57 
GeneralRe: ArrayList Madness Pin
Heath Stewart3-Jan-04 11:01
protectorHeath Stewart3-Jan-04 11:01 
GeneralRe: ArrayList Madness Pin
leppie3-Jan-04 11:06
leppie3-Jan-04 11:06 
GeneralRe: ArrayList Madness Pin
eggie53-Jan-04 11:10
eggie53-Jan-04 11:10 
GeneralRe: ArrayList Madness Pin
eggie53-Jan-04 11:27
eggie53-Jan-04 11:27 
GeneralRe: ArrayList Madness Pin
Nick Parker3-Jan-04 10:30
protectorNick Parker3-Jan-04 10:30 
GeneralNeed a multiline listview Windows Forms control Pin
Roman R.3-Jan-04 7:37
Roman R.3-Jan-04 7:37 
GeneralRe: Need a multiline listview Windows Forms control Pin
Heath Stewart3-Jan-04 7:47
protectorHeath Stewart3-Jan-04 7:47 
GeneralRe: Need a multiline listview Windows Forms control Pin
Roman R.3-Jan-04 7:55
Roman R.3-Jan-04 7:55 
GeneralRe: Need a multiline listview Windows Forms control Pin
Heath Stewart3-Jan-04 10:59
protectorHeath Stewart3-Jan-04 10:59 
GeneralRe: Need a multiline listview Windows Forms control Pin
Roman R.3-Jan-04 17:21
Roman R.3-Jan-04 17:21 
GeneralRe: Need a multiline listview Windows Forms control Pin
Heath Stewart3-Jan-04 17:24
protectorHeath Stewart3-Jan-04 17:24 
GeneralRe: Need a multiline listview Windows Forms control Pin
Carlos H. Perez3-Jan-04 11:26
Carlos H. Perez3-Jan-04 11:26 
GeneralRe: Need a multiline listview Windows Forms control Pin
Nick Parker3-Jan-04 11:42
protectorNick Parker3-Jan-04 11:42 
GeneralRe: Need a multiline listview Windows Forms control Pin
Carlos H. Perez3-Jan-04 12:11
Carlos H. Perez3-Jan-04 12:11 
GeneralRe: Need a multiline listview Windows Forms control Pin
Roman R.3-Jan-04 17:27
Roman R.3-Jan-04 17:27 
GeneralRe: Need a multiline listview Windows Forms control Pin
hammackj3-Jan-04 21:55
hammackj3-Jan-04 21:55 
GeneralRe: Need a multiline listview Windows Forms control Pin
Roman R.4-Jan-04 5:49
Roman R.4-Jan-04 5:49 
GeneralRe: Need a multiline listview Windows Forms control Pin
hammackj4-Jan-04 10:49
hammackj4-Jan-04 10:49 
GeneralCustom MessageBox buttons Pin
Broken God3-Jan-04 6:24
Broken God3-Jan-04 6:24 
GeneralRe: Custom MessageBox buttons Pin
Colin Angus Mackay3-Jan-04 6:51
Colin Angus Mackay3-Jan-04 6:51 

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.