Click here to Skip to main content
15,906,248 members
Home / Discussions / C#
   

C#

 
GeneralRe: write at a particular position in a text document Pin
firefeet20-Aug-09 17:53
firefeet20-Aug-09 17:53 
AnswerRe: write at a particular position in a text document Pin
Tr@v21-Aug-09 7:44
Tr@v21-Aug-09 7:44 
QuestionUpdate datagrid cell Pin
bonzaiholding19-Aug-09 22:35
bonzaiholding19-Aug-09 22:35 
AnswerRe: Update datagrid cell Pin
padmanabhan N19-Aug-09 22:54
padmanabhan N19-Aug-09 22:54 
GeneralUsing Dynamic predicates (Linq) Pin
Sayed Sajid19-Aug-09 22:32
Sayed Sajid19-Aug-09 22:32 
QuestionDelegate.CreateDelegate in so non static function Pin
bonzaiholding19-Aug-09 21:56
bonzaiholding19-Aug-09 21:56 
AnswerRe: Delegate.CreateDelegate in so non static function Pin
bonzaiholding19-Aug-09 22:32
bonzaiholding19-Aug-09 22:32 
QuestionDetecting a change in excel spreadsheet cell Pin
NarVish19-Aug-09 21:29
NarVish19-Aug-09 21:29 
AnswerRe: Detecting a change in excel spreadsheet cell Pin
Rajesh R Subramanian19-Aug-09 21:33
professionalRajesh R Subramanian19-Aug-09 21:33 
GeneralRe: Detecting a change in excel spreadsheet cell Pin
NarVish20-Aug-09 0:46
NarVish20-Aug-09 0:46 
GeneralRe: Detecting a change in excel spreadsheet cell Pin
FilipKrnjic25-Aug-09 3:59
FilipKrnjic25-Aug-09 3:59 
QuestionSystem.Globalization.CultureInfo cannot be serialized because it does not have a parameterless constructor Pin
Mouleswarareddy19-Aug-09 21:16
Mouleswarareddy19-Aug-09 21:16 
AnswerRe: System.Globalization.CultureInfo cannot be serialized because it does not have a parameterless constructor Pin
stancrm19-Aug-09 21:30
stancrm19-Aug-09 21:30 
QuestionEvaluate a String that contains code Pin
Chad Roeder19-Aug-09 21:02
Chad Roeder19-Aug-09 21:02 
AnswerRe: Evaluate a String that contains code Pin
Pete O'Hanlon19-Aug-09 22:55
mvePete O'Hanlon19-Aug-09 22:55 
GeneralRe: Evaluate a String that contains code Pin
Chad Roeder26-Aug-09 8:58
Chad Roeder26-Aug-09 8:58 
QuestionGridview Pin
mjawadkhatri19-Aug-09 20:59
mjawadkhatri19-Aug-09 20:59 
AnswerRe: Gridview Pin
HimanshuJoshi19-Aug-09 21:04
HimanshuJoshi19-Aug-09 21:04 
AnswerRe: Gridview Pin
Vimalsoft(Pty) Ltd19-Aug-09 22:20
professionalVimalsoft(Pty) Ltd19-Aug-09 22:20 
AnswerRe: Gridview Pin
padmanabhan N19-Aug-09 22:43
padmanabhan N19-Aug-09 22:43 
AnswerRe: Gridview Pin
wyj12020-Aug-09 0:40
wyj12020-Aug-09 0:40 
QuestionNetworkStream problem... Pin
Trapper-Hell19-Aug-09 20:43
Trapper-Hell19-Aug-09 20:43 
I have already asked this question before (but was left unanswered), so I am attempting again, this time refining this question, and hoping that somebody that reads this, would be able to answer. The problem is this...

I have this application that sends data to another application on very short intervals (~250ms) between one write and another. This all works great on most PCs but on some others it doesn't work well at all. Reason being, that on the receiving-end, before being able to read all the bytes, the later parts of the data would become all 0s. I don't know if this is a timeout or what?

The current code is very simple but works fine (on most PCs):
nsStream.Write(buffer, 0, buffer.Length); // Buffer being a byte[] containing the data

nsStream.Read(buffer, 0, buffer.Length); // Buffer being a byte[] with a pre-determined size

I have attempted to encapsulate the NetworkStream within a BufferedStream but it only made the situation worse - it doesn't work on the PCs that it used to...

Any help is greatly appreciated!
AnswerRe: NetworkStream problem... Pin
Luc Pattyn19-Aug-09 22:51
sitebuilderLuc Pattyn19-Aug-09 22:51 
GeneralRe: NetworkStream problem... Pin
Trapper-Hell23-Aug-09 21:07
Trapper-Hell23-Aug-09 21:07 
GeneralRe: NetworkStream problem... Pin
Luc Pattyn24-Aug-09 0:38
sitebuilderLuc Pattyn24-Aug-09 0:38 

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.