Click here to Skip to main content
15,898,938 members
Home / Discussions / C#
   

C#

 
AnswerRe: Using Thread.Sleep() in a Timer tick event Pin
Abhijit Jana29-Jul-09 5:27
professionalAbhijit Jana29-Jul-09 5:27 
GeneralRe: Using Thread.Sleep() in a Timer tick event Pin
ThomasManz29-Jul-09 10:19
ThomasManz29-Jul-09 10:19 
AnswerRe: Using Thread.Sleep() in a Timer tick event Pin
Abhijit Jana29-Jul-09 11:03
professionalAbhijit Jana29-Jul-09 11:03 
AnswerRe: Using Thread.Sleep() in a Timer tick event Pin
Lutosław29-Jul-09 10:12
Lutosław29-Jul-09 10:12 
Questionexisting object.custom property Pin
_Q12_29-Jul-09 4:19
_Q12_29-Jul-09 4:19 
AnswerRe: existing object.custom property Pin
OriginalGriff29-Jul-09 4:30
mveOriginalGriff29-Jul-09 4:30 
AnswerRe: existing object.custom property Pin
_Q12_29-Jul-09 6:32
_Q12_29-Jul-09 6:32 
QuestionRouge Text String in Socket Programing Pin
User 621557929-Jul-09 4:04
User 621557929-Jul-09 4:04 
Hello, I'm currently teaching myself asynchronous socket programing. Should mention I got the code here http://www.codeguru.com/csharp/csharp/cs_network/sockets/article.php/c8781#Client6[^] and have been editing it and improving it.

Anyway the problem I'm having is after I kick someone for trying to use a name someone else has or they change their name while they are connected to a name someone else has, a rouge string "\0" is sent seemingly from the client, even though when I kick the client and the socket is closed he still manages to send it. I know it happens after I send a message to the client.

The reason that this is kinda of a problem is because I'm using substring and of course the string is just too short.

I know I can just use an if sentence that makes it ignore everything that is fewer than x characters but I really want to know where this rouge text string is coming from.

Can someone help me?

Sorry about not posting the code but it is very long and I can't really pinpoint where the error is.

modified 27-Feb-21 21:01pm.

AnswerRe: Rouge Text String in Socket Programing Pin
Nagy Vilmos29-Jul-09 4:59
professionalNagy Vilmos29-Jul-09 4:59 
GeneralRe: Rouge Text String in Socket Programing Pin
User 621557929-Jul-09 5:09
User 621557929-Jul-09 5:09 
GeneralRe: Rouge Text String in Socket Programing Pin
Nagy Vilmos29-Jul-09 5:12
professionalNagy Vilmos29-Jul-09 5:12 
GeneralRe: Rouge Text String in Socket Programing Pin
User 621557929-Jul-09 6:21
User 621557929-Jul-09 6:21 
GeneralRe: Rouge Text String in Socket Programing Pin
Nagy Vilmos29-Jul-09 6:48
professionalNagy Vilmos29-Jul-09 6:48 
GeneralRe: Rouge Text String in Socket Programing Pin
User 621557929-Jul-09 6:55
User 621557929-Jul-09 6:55 
GeneralRe: Rouge Text String in Socket Programing Pin
Nagy Vilmos29-Jul-09 7:03
professionalNagy Vilmos29-Jul-09 7:03 
GeneralRe: Rouge Text String in Socket Programing Pin
User 621557929-Jul-09 7:11
User 621557929-Jul-09 7:11 
GeneralRe: Rouge Text String in Socket Programing Pin
Nagy Vilmos29-Jul-09 22:19
professionalNagy Vilmos29-Jul-09 22:19 
GeneralRe: Rouge Text String in Socket Programing Pin
User 621557930-Jul-09 1:54
User 621557930-Jul-09 1:54 
GeneralLogin form connectivity with SQL server 2005 with ADO.NET Pin
Harpreet Singh Matharoo29-Jul-09 4:03
Harpreet Singh Matharoo29-Jul-09 4:03 
GeneralRe: Login form connectivity with SQL server 2005 with ADO.NET Pin
Vimalsoft(Pty) Ltd29-Jul-09 4:50
professionalVimalsoft(Pty) Ltd29-Jul-09 4:50 
QuestionDatagridview DateTimePicker Problem. Pin
priyamtheone29-Jul-09 3:31
priyamtheone29-Jul-09 3:31 
QuestionFind Scroll bar moved either left/right? Pin
spalanivel29-Jul-09 3:15
spalanivel29-Jul-09 3:15 
AnswerRe: Find Scroll bar moved either left/right? Pin
Nagy Vilmos29-Jul-09 3:33
professionalNagy Vilmos29-Jul-09 3:33 
AnswerCP Please ignore Pin
leckey29-Jul-09 4:55
leckey29-Jul-09 4:55 
QuestionHow can i see native code? Pin
frommi29-Jul-09 3:10
frommi29-Jul-09 3:10 

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.