Click here to Skip to main content
15,901,122 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to get color of pixel at mouse click in live video control Pin
Henry Minute21-Apr-09 1:42
Henry Minute21-Apr-09 1:42 
QuestionRe: How to get color of pixel at mouse click in live video control [modified] Pin
sebogawa21-Apr-09 8:46
sebogawa21-Apr-09 8:46 
QuestionConcurrency violation: the UpdateCommand affected 0 of the expected 1 records [Very Emergency] Pin
hdv21220-Apr-09 19:34
hdv21220-Apr-09 19:34 
AnswerRe: Concurrency violation: the UpdateCommand affected 0 of the expected 1 records [Very Emergency] Pin
Roman Lerman20-Apr-09 22:47
Roman Lerman20-Apr-09 22:47 
GeneralRe: Concurrency violation: the UpdateCommand affected 0 of the expected 1 records [Very Emergency] Pin
hdv21220-Apr-09 23:55
hdv21220-Apr-09 23:55 
GeneralRe: Concurrency violation: the UpdateCommand affected 0 of the expected 1 records [Very Emergency] Pin
Roman Lerman21-Apr-09 0:37
Roman Lerman21-Apr-09 0:37 
GeneralRe: Concurrency violation: the UpdateCommand affected 0 of the expected 1 records [Very Emergency] Pin
hdv21221-Apr-09 1:10
hdv21221-Apr-09 1:10 
AnswerRe: Concurrency violation: the UpdateCommand affected 0 of the expected 1 records [Very Emergency] Pin
Roman Lerman21-Apr-09 1:22
Roman Lerman21-Apr-09 1:22 
GeneralRe: Concurrency violation: the UpdateCommand affected 0 of the expected 1 records [Very Emergency] Pin
hdv21221-Apr-09 2:34
hdv21221-Apr-09 2:34 
GeneralRe: Concurrency violation: the UpdateCommand affected 0 of the expected 1 records [Very Emergency] Pin
Roman Lerman21-Apr-09 2:44
Roman Lerman21-Apr-09 2:44 
GeneralRe: Concurrency violation: the UpdateCommand affected 0 of the expected 1 records [Very Emergency] Pin
hdv21221-Apr-09 3:05
hdv21221-Apr-09 3:05 
QuestionHow to convert (string -> xml) with window mobile Pin
YochangSong20-Apr-09 18:34
YochangSong20-Apr-09 18:34 
AnswerRe: How to convert (string -> xml) with window mobile Pin
N a v a n e e t h20-Apr-09 19:55
N a v a n e e t h20-Apr-09 19:55 
Questionplugin error Pin
Ch.Gayatri Subudhi20-Apr-09 18:24
Ch.Gayatri Subudhi20-Apr-09 18:24 
QuestionTab Control Pin
Piyush Vaishnav20-Apr-09 17:36
Piyush Vaishnav20-Apr-09 17:36 
AnswerRe: Tab Control Pin
Christian Graus20-Apr-09 17:46
protectorChristian Graus20-Apr-09 17:46 
QuestionAccessing webcam.. Pin
Jacob Dixon20-Apr-09 17:16
Jacob Dixon20-Apr-09 17:16 
AnswerRe: Accessing webcam.. Pin
Christian Graus20-Apr-09 17:36
protectorChristian Graus20-Apr-09 17:36 
GeneralRe: Accessing webcam.. Pin
Jacob Dixon20-Apr-09 18:16
Jacob Dixon20-Apr-09 18:16 
AnswerRe: Accessing webcam.. Pin
Amar Chaudhary20-Apr-09 19:23
Amar Chaudhary20-Apr-09 19:23 
AnswerRe: Accessing webcam.. Pin
Skymir21-Apr-09 3:04
Skymir21-Apr-09 3:04 
Questionreading contents of multiple text files Pin
mist_psycho20-Apr-09 15:50
mist_psycho20-Apr-09 15:50 
AnswerRe: reading contents of multiple text files Pin
N a v a n e e t h20-Apr-09 16:31
N a v a n e e t h20-Apr-09 16:31 
QuestionBinaryReader stuck on reading from NetworkStream Pin
Ady Shimony20-Apr-09 15:41
Ady Shimony20-Apr-09 15:41 
AnswerRe: BinaryReader stuck on reading from NetworkStream Pin
N a v a n e e t h20-Apr-09 16:45
N a v a n e e t h20-Apr-09 16:45 
AFAIK, ReadString() throws EndOfStreamException when there is no data in stream. Hanging looks odd and problem will be somewhere else. Anyway it is always good to check data exist before you read from stream. Just do a check before you read the string. Something like,
bool canRead = (binaryReader.Read() == -1) ? false : true;
if(canRead){

    // Start from the first position
    binaryReader.BaseStream.Seek(0, SeekOrigin.Begin);

    return binaryReader.ReadString();
}
Hope that helps Smile | :)


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.