Click here to Skip to main content
15,921,622 members
Home / Discussions / C#
   

C#

 
GeneralRe: Concat Pin
msogun20-Mar-07 10:12
msogun20-Mar-07 10:12 
QuestionProgressBar Marquee does not scroll Pin
F.E.L.I.X.20-Mar-07 9:38
F.E.L.I.X.20-Mar-07 9:38 
AnswerRe: ProgressBar Marquee does not scroll Pin
Zoltan Balazs20-Mar-07 9:43
Zoltan Balazs20-Mar-07 9:43 
GeneralRe: ProgressBar Marquee does not scroll Pin
F.E.L.I.X.20-Mar-07 9:48
F.E.L.I.X.20-Mar-07 9:48 
GeneralRe: ProgressBar Marquee does not scroll Pin
Dave Kreskowiak20-Mar-07 12:29
mveDave Kreskowiak20-Mar-07 12:29 
GeneralRe: ProgressBar Marquee does not scroll Pin
F.E.L.I.X.20-Mar-07 18:28
F.E.L.I.X.20-Mar-07 18:28 
Questionchange color of gif image Pin
samreengr820-Mar-07 9:34
samreengr820-Mar-07 9:34 
QuestionIssues with "C# Ping" Pin
Sean Wcisel20-Mar-07 9:11
Sean Wcisel20-Mar-07 9:11 
I've been trying to implement the code found here, and everything works like a charm as long as all the machines I'm checking are up, but the thing freezes if one or more of them is down. I ran through with the debugger, and it freezes while executing the line I marked in the code below:

<br />
.<br />
.<br />
.<br />
try<br />
{<br />
// Start timing<br />
start = Environment.TickCount;<br />
<br />
//send the Packet over the socket<br />
byteCount = socket.SendTo(sendBuffer, IcmpPacket.ICMP_PACKET_SIZE, SocketFlags.None, server);<br />
<br />
if (byteCount == SOCKET_ERROR)<br />
{<br />
result = PingResponseType.ConnectionError;<br />
response.ResponseTimes[i] = Constants.InvalidInt;<br />
}<br />
else<br />
						<br />
//ReceiveFrom will block while waiting for data (***the problem is on the next line***)<br />
byteCount = socket.ReceiveFrom(receiveBuffer, 256, SocketFlags.None, ref client); <br />
<br />
// stop timing<br />
stop = System.Environment.TickCount;<br />
.<br />
.<br />
.<br />


in Ping.cs.

Again, this problem occurs only when a machine is offline (I've been unplugging one of them from the network to test it). I don't get an error or timeout, like I should. The program simply freezes.

I know this error is pretty darn specific, but hopefully someone out there has had some experience with it. I'm willing to provide any other pertinent details as necessary.

Thanks,
Sean
Questionstring to pieces Pin
marwan_siala20-Mar-07 8:01
marwan_siala20-Mar-07 8:01 
AnswerRe: string to pieces Pin
kozu20-Mar-07 8:09
kozu20-Mar-07 8:09 
GeneralRe: string to pieces Pin
marwan_siala20-Mar-07 8:26
marwan_siala20-Mar-07 8:26 
QuestionDialog with ProgressBar & label not working correctly Pin
kozu20-Mar-07 7:39
kozu20-Mar-07 7:39 
AnswerRe: Dialog with ProgressBar & label not working correctly Pin
Zoltan Balazs20-Mar-07 8:59
Zoltan Balazs20-Mar-07 8:59 
GeneralRe: Dialog with ProgressBar & label not working correctly Pin
kozu20-Mar-07 9:07
kozu20-Mar-07 9:07 
GeneralRe: Dialog with ProgressBar & label not working correctly Pin
Zoltan Balazs20-Mar-07 9:29
Zoltan Balazs20-Mar-07 9:29 
GeneralRe: Dialog with ProgressBar & label not working correctly Pin
Dave Kreskowiak20-Mar-07 12:24
mveDave Kreskowiak20-Mar-07 12:24 
GeneralRe: Dialog with ProgressBar & label not working correctly Pin
kozu20-Mar-07 13:32
kozu20-Mar-07 13:32 
QuestionListViewItemCollection's implementation of interfaces... Pin
Shy Agam20-Mar-07 7:39
Shy Agam20-Mar-07 7:39 
AnswerRe: ListViewItemCollection's implementation of interfaces... [modified] Pin
Edmundisme20-Mar-07 8:32
Edmundisme20-Mar-07 8:32 
GeneralRe: ListViewItemCollection's implementation of interfaces... [modified] Pin
Shy Agam20-Mar-07 9:01
Shy Agam20-Mar-07 9:01 
GeneralRe: ListViewItemCollection's implementation of interfaces... Pin
Shy Agam20-Mar-07 9:25
Shy Agam20-Mar-07 9:25 
AnswerRe: ListViewItemCollection's implementation of interfaces... Pin
Shy Agam20-Mar-07 10:29
Shy Agam20-Mar-07 10:29 
GeneralRe: ListViewItemCollection's implementation of interfaces... Pin
Edmundisme20-Mar-07 11:04
Edmundisme20-Mar-07 11:04 
GeneralRe: ListViewItemCollection's implementation of interfaces... Pin
Shy Agam20-Mar-07 11:06
Shy Agam20-Mar-07 11:06 
QuestionProject Namespace/Folder setup Question Pin
jubilanttiger20-Mar-07 7:12
jubilanttiger20-Mar-07 7:12 

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.