Hello,
I am having a trouble with the ReadLine method in C#. Basically I have a StreamReader (read) attached to a NetworkStream. No problem with this part.
While reading I use the lines below:
string file = "";
string line;
while ((line = read.ReadLine() )!= null)
{
file += "\r\n"+line ;
}
When I am debug, the code reads till the last line in the network stream. When it attempts to read the last line, debug fails, and interestingly, the window of the form (the lines given above are in the class Form1) appears. Pressing F10, F11 or F5 does not work. In fact they are greyed out in the Debug menu, but Stop Debug, etc still functions.
I think a simple problem but I could not figure it out.
Thank you for helping,
Halil
I am having a trouble with the ReadLine method in C#. Basically I have a StreamReader (read) attached to a NetworkStream. No problem with this part.
While reading I use the lines below:
string file = "";
string line;
while ((line = read.ReadLine() )!= null)
{
file += "\r\n"+line ;
}
When I am debug, the code reads till the last line in the network stream. When it attempts to read the last line, debug fails, and interestingly, the window of the form (the lines given above are in the class Form1) appears. Pressing F10, F11 or F5 does not work. In fact they are greyed out in the Debug menu, but Stop Debug, etc still functions.
I think a simple problem but I could not figure it out.
Thank you for helping,
Halil
Comment