Click here to Skip to main content
15,891,981 members
Home / Discussions / C#
   

C#

 
AnswerRe: Exception in access to textbox ? Pin
Luc Pattyn12-Aug-09 0:01
sitebuilderLuc Pattyn12-Aug-09 0:01 
Questionthreading in a Custom Collection Pin
Juvil John11-Aug-09 21:29
Juvil John11-Aug-09 21:29 
AnswerRe: threading in a Custom Collection Pin
stancrm11-Aug-09 21:53
stancrm11-Aug-09 21:53 
GeneralRe: threading in a Custom Collection [modified] Pin
Juvil John11-Aug-09 22:51
Juvil John11-Aug-09 22:51 
AnswerRe: threading in a Custom Collection Pin
Nicholas Butler12-Aug-09 1:54
sitebuilderNicholas Butler12-Aug-09 1:54 
QuestionCustom Installation Pin
lune1211-Aug-09 21:05
lune1211-Aug-09 21:05 
Questionupdate:Edit datagridview Pin
abdolrab11-Aug-09 21:00
abdolrab11-Aug-09 21:00 
QuestionNetworkStream, possibly Read timeout? Pin
Trapper-Hell11-Aug-09 20:46
Trapper-Hell11-Aug-09 20:46 
I have these two applications, one of which sends a screenshot image to the other. This works smoothly on most PCs, however some (older) PCs start receiving a lot of zeros after reading some of the data. How can I ensure that all the data being sent, is read? I don't know if this is a timeout issue, or what?

(I have found some solutions, such as WriteByte / ReadByte, but I need it to perform quite fast too, if possible)

The methods are as follows:

Sending:
if (nsStream.CanWrite)
     nsStream.Write(bUp, 0, bUp.Length);

nsStream.Flush();

int x = 0;

while (nsStream.DataAvailable && x < dataReadWait)
{
     x++;
     // Wait for data to be read
}

return true;


Receiving:
if (nsStream.CanRead)
     nsStream.Read(bDown, 0, bDown.Length);

nsStream.Flush();
return bDown;


At this point, it is worth saying that the Sender prior to sending the actual image, sends the length of the image (which is assigned to bDown), that is why data is read until the length of bDown...

Any help is so greatly appreciated!
GeneralDataSet DataTime Binding Issue Pin
VenkataRamana.Gali11-Aug-09 20:18
VenkataRamana.Gali11-Aug-09 20:18 
GeneralRe: DataSet DataTime Issue Pin
PIEBALDconsult11-Aug-09 20:23
mvePIEBALDconsult11-Aug-09 20:23 
GeneralRe: DataSet DataTime Issue Pin
VenkataRamana.Gali11-Aug-09 20:32
VenkataRamana.Gali11-Aug-09 20:32 
QuestionRegular Expression problem [possibly solved] [modified] Pin
PIEBALDconsult11-Aug-09 19:01
mvePIEBALDconsult11-Aug-09 19:01 
QuestionHow to display a chart in PDF using C#? Pin
ravi.vellanky11-Aug-09 19:00
ravi.vellanky11-Aug-09 19:00 
AnswerRe: How to display a chart in PDF using C#? Pin
stancrm11-Aug-09 21:36
stancrm11-Aug-09 21:36 
QuestionMenu items to tab pages in tabcontrol Pin
elci11-Aug-09 18:46
elci11-Aug-09 18:46 
Questionfactory method Pin
jpk42011-Aug-09 18:25
jpk42011-Aug-09 18:25 
AnswerRe: factory method Pin
PIEBALDconsult11-Aug-09 20:19
mvePIEBALDconsult11-Aug-09 20:19 
GeneralRe: factory method Pin
jpk42011-Aug-09 21:35
jpk42011-Aug-09 21:35 
GeneralRe: factory method Pin
PIEBALDconsult12-Aug-09 4:14
mvePIEBALDconsult12-Aug-09 4:14 
Question[SOLVED]convert to base 64 issue with AES encryption [modified] Pin
Member 360949111-Aug-09 16:34
Member 360949111-Aug-09 16:34 
AnswerRe: convert to base 64 issue with AES encryption Pin
Luc Pattyn11-Aug-09 16:39
sitebuilderLuc Pattyn11-Aug-09 16:39 
GeneralRe: convert to base 64 issue with AES encryption Pin
Member 360949111-Aug-09 17:06
Member 360949111-Aug-09 17:06 
AnswerRe: convert to base 64 issue with AES encryption Pin
Member 360949111-Aug-09 17:22
Member 360949111-Aug-09 17:22 
Question[Message Deleted] Pin
neha_rai11-Aug-09 10:56
neha_rai11-Aug-09 10:56 
AnswerRe: how to clear Pin
Henry Minute11-Aug-09 11:34
Henry Minute11-Aug-09 11:34 

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.