Click here to Skip to main content
15,886,199 members
Home / Discussions / C#
   

C#

 
GeneralRe: Upload multiple *.txt to remote server Pin
blackjack21503-Apr-07 21:09
blackjack21503-Apr-07 21:09 
GeneralRe: Upload multiple *.txt to remote server Pin
Martin#3-Apr-07 21:41
Martin#3-Apr-07 21:41 
QuestionHow to convert XML Datatype in SQL to C# Pin
srivatsan242-Apr-07 21:51
srivatsan242-Apr-07 21:51 
AnswerRe: How to convert XML Datatype in SQL to C# Pin
originSH3-Apr-07 0:38
originSH3-Apr-07 0:38 
GeneralRe: How to convert XML Datatype in SQL to C# Pin
srivatsan243-Apr-07 1:04
srivatsan243-Apr-07 1:04 
GeneralRe: How to convert XML Datatype in SQL to C# Pin
kubben3-Apr-07 2:31
kubben3-Apr-07 2:31 
GeneralRe: How to convert XML Datatype in SQL to C# Pin
originSH3-Apr-07 2:33
originSH3-Apr-07 2:33 
QuestionReading from a network stream problem Pin
ctoma20052-Apr-07 21:44
ctoma20052-Apr-07 21:44 
Hello. I have a big problem with network streams.
I have a network stream and, from time-to-time i have to check from messages received from the server.
My problem is that if i receive, for example, 2 messages from the server if I run in debug mode and stop just before the read, it reads both messages received. But if i run in release mode, i get only the first command(because there is a a small period of time between the two messages where stream.DataAvailable is set to false and it exits my loop).
How can I fix this problem? Because I don't know in advance how many messages the server will send.
This is my code:
<br />
if (stream.CanRead)<br />
{<br />
  while (stream.DataAvailable)<br />
  {<br />
   numberOfBytesRead = stream.Read(myReadBuffer, 0, myReadBuffer.Length);<br />
   myCompleteMessage =  String.Concat(myCompleteMessage, Encoding.ASCII.GetString(myReadBuffer, 0, numberOfBytesRead)); <br />
  }<br />
} <br />


CAN SOMEONE PLEASE HELP ME???
IT'S A B IG PROBLEM FOR ME, I'M NEW IN C#
THANKS IN ADVANCE!!

AnswerRe: Reading from a network stream problem Pin
WillemM3-Apr-07 1:18
WillemM3-Apr-07 1:18 
QuestionHow I can find out the assembly is COM server or not? Pin
Vlad~2-Apr-07 21:30
Vlad~2-Apr-07 21:30 
QuestionHow to delete a Row in a Text &amp;amp;quot;CSV&amp;amp;quot; file? [modified] Pin
Khoramdin2-Apr-07 21:22
Khoramdin2-Apr-07 21:22 
AnswerRe: How to delete a Row in a Text &amp;amp;quot;CSV&amp;amp;quot; file? Pin
WillemM3-Apr-07 1:23
WillemM3-Apr-07 1:23 
GeneralRe: How to delete a Row in a Text &amp;amp;amp;amp;quot;CSV&amp;amp;amp;amp;quot; file? [modified] Pin
Khoramdin3-Apr-07 5:35
Khoramdin3-Apr-07 5:35 
QuestionError on DataAdapter.Fill() Pin
JacquesDP2-Apr-07 20:56
JacquesDP2-Apr-07 20:56 
AnswerRe: Error on DataAdapter.Fill() Pin
CPallini2-Apr-07 21:20
mveCPallini2-Apr-07 21:20 
GeneralRe: Error on DataAdapter.Fill() Pin
JacquesDP2-Apr-07 21:31
JacquesDP2-Apr-07 21:31 
AnswerRe: Error on DataAdapter.Fill() Pin
sooreeagt2-Apr-07 22:41
sooreeagt2-Apr-07 22:41 
GeneralRe: Error on DataAdapter.Fill() Pin
JacquesDP2-Apr-07 22:44
JacquesDP2-Apr-07 22:44 
Questionhow to implement xmlDOm in c# Pin
sweetnallu2-Apr-07 20:26
sweetnallu2-Apr-07 20:26 
AnswerRe: how to implement xmlDOm in c# Pin
Christian Graus2-Apr-07 20:49
protectorChristian Graus2-Apr-07 20:49 
AnswerRe: how to implement xmlDOm in c# Pin
Sathesh Sakthivel2-Apr-07 20:50
Sathesh Sakthivel2-Apr-07 20:50 
GeneralRe: how to implement xmlDOm in c# Pin
Christian Graus2-Apr-07 21:21
protectorChristian Graus2-Apr-07 21:21 
GeneralRe: how to implement xmlDOm in c# Pin
714-Apr-07 17:52
714-Apr-07 17:52 
Questionhow to split string Pin
sooreeagt2-Apr-07 20:22
sooreeagt2-Apr-07 20:22 
AnswerRe: how to split string Pin
Martin#2-Apr-07 20:31
Martin#2-Apr-07 20:31 

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.