Click here to Skip to main content
16,011,120 members
Home / Discussions / C#
   

C#

 
GeneralModem Control Pin
alex_kl7-Jan-05 9:56
alex_kl7-Jan-05 9:56 
GeneralRe: Modem Control Pin
Heath Stewart7-Jan-05 11:45
protectorHeath Stewart7-Jan-05 11:45 
GeneralApp.Config Question... Pin
Richard Parsons7-Jan-05 8:24
Richard Parsons7-Jan-05 8:24 
GeneralRe: App.Config Question... Pin
Nick Parker7-Jan-05 8:38
protectorNick Parker7-Jan-05 8:38 
GeneralRe: App.Config Question... Pin
Richard Parsons7-Jan-05 9:12
Richard Parsons7-Jan-05 9:12 
QuestionHow can I make the datagrid invisible and have the save button come up Pin
macupryk7-Jan-05 8:10
macupryk7-Jan-05 8:10 
AnswerRe: How can I make the datagrid invisible and have the save button come up Pin
Nick Parker7-Jan-05 8:30
protectorNick Parker7-Jan-05 8:30 
GeneralBeginRead() EndRead() methods with NetworkStream class Pin
mikeyhardingboyo7-Jan-05 6:53
mikeyhardingboyo7-Jan-05 6:53 
Hi, iv got a program which has a networkstream for exchangin messages between a server and client......

The problem i had was that the client needs to keep checking the data stream for new messages sent from the server......as im no expert i originally implemented a endless while loop which checked for data in the incoming data buffer but obviously this caused my computer to crash with the number of checks it was doing..........

so i found out about the BeginRead() method which allowed me to create a seperate execution thread using a delegate and callback method......so then i could re call the beginRead() with in the thread so it continously read in formation from the stream............

Now, i dont think i understand how to implement them, as it seems to work one time round and then crashes, or reads data into the buffer that looks like \0\0\0\0\0\0\0\0\0\0\0 (what eva that means)..........i think i need some one to shed some light on these methods so i can get it to work??

cheers

sorry for the long message....


mike
GeneralRe: BeginRead() EndRead() methods with NetworkStream class Pin
Heath Stewart7-Jan-05 7:38
protectorHeath Stewart7-Jan-05 7:38 
GeneralRe: BeginRead() EndRead() methods with NetworkStream class Pin
mikeyhardingboyo7-Jan-05 8:04
mikeyhardingboyo7-Jan-05 8:04 
GeneralRe: BeginRead() EndRead() methods with NetworkStream class Pin
Heath Stewart7-Jan-05 9:15
protectorHeath Stewart7-Jan-05 9:15 
GeneralRe: BeginRead() EndRead() methods with NetworkStream class Pin
mikeyhardingboyo7-Jan-05 17:19
mikeyhardingboyo7-Jan-05 17:19 
GeneralRe: Strange Pin
bouli7-Jan-05 6:52
bouli7-Jan-05 6:52 
GeneralRe: Strange Pin
Heath Stewart7-Jan-05 7:52
protectorHeath Stewart7-Jan-05 7:52 
GeneralRe: Strange Pin
bouli7-Jan-05 8:54
bouli7-Jan-05 8:54 
GeneralRe: Strange Pin
Heath Stewart7-Jan-05 9:03
protectorHeath Stewart7-Jan-05 9:03 
GeneralRe: Strange Pin
bouli7-Jan-05 9:10
bouli7-Jan-05 9:10 
GeneralStrange Pin
bouli7-Jan-05 6:30
bouli7-Jan-05 6:30 
GeneralRe: Strange Pin
Heath Stewart7-Jan-05 6:44
protectorHeath Stewart7-Jan-05 6:44 
GeneralRe: Strange Pin
bouli7-Jan-05 6:47
bouli7-Jan-05 6:47 
Generaldate time control Pin
Anonymous7-Jan-05 5:35
Anonymous7-Jan-05 5:35 
GeneralRe: date time control Pin
Heath Stewart7-Jan-05 6:42
protectorHeath Stewart7-Jan-05 6:42 
GeneralRe: date time control Pin
Anonymous7-Jan-05 7:18
Anonymous7-Jan-05 7:18 
GeneralRe: date time control Pin
Heath Stewart7-Jan-05 7:33
protectorHeath Stewart7-Jan-05 7:33 
GeneralUdp. How to recieve. Pin
Umair Ahmad khan7-Jan-05 5:05
Umair Ahmad khan7-Jan-05 5:05 

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.