Ping ----> Slow!!!
Ping ----> Slow!!!
Ping ----> Slow!!!
Ping ----> Slow!!!
Ping ----> Slow!!!
Ping ----> Slow!!! Ping ----> Slow!!! Ping ----> Slow!!! Ping ----> Slow!!! Ping ----> Slow!!! Ping ----> Slow!!! Ping ----> Slow!!! Ping ----> Slow!!!
Ping ----> Slow!!! Ping ----> Slow!!!
Ping ----> Slow!!!
Go Back  Xtreme Visual Basic Talk > > > Ping ----> Slow!!!


Reply
 
Thread Tools Display Modes
  #1  
Old 09-06-2001, 09:33 AM
boy...
Guest
 
Posts: n/a
Default Ping ----> Slow!!!


I have just completed a Pinging project, but i found that when the application is pinging, my computer will be really sluggish...

If i try to ping 100 times in one click, it won't let me stop it even i click X button for 100 times!! !!!!

I know this is not a error, anyone knows how to aviod this problem? pinging without any delay??



a novice
Reply With Quote
  #2  
Old 09-06-2001, 10:21 AM
ChiefRedBull's Avatar
ChiefRedBullPing ----> Slow!!! ChiefRedBull is offline
ISearchGoogle

Retired Moderator
* Expert *
 
Join Date: May 2001
Location: england
Posts: 6,321
Default Re: Ping ----> Slow!!!

Try pinging only a few times...... ie 5-10. 100 is far too many anyway.
I have found that VB doesn't like large or two many nested loops - mine often crashes if I try to loop over about 50 times... maybe its a memory problem?

Chief

"Dammit Smithers, this is brain surgery not rocket science!! Now hand me that ice cream scoop..."
__________________
Chuck Norris ordered a Big Mac at Burger King, and got one.
Reply With Quote
  #3  
Old 09-06-2001, 10:32 AM
ThinkerPing ----> Slow!!! Thinker is offline
Iron-Fisted Programmer

Retired Moderator
* Guru *
 
Join Date: Jul 2001
Location: Fayetteville Arkansas USA
Posts: 18,127
Default Re: Ping ----> Slow!!!

Try not sending out the next ping until you receive the response from
the first ping. Also, you should have a pause and only do a limited
number. Otherwise, you are flood pinging - a bad thing.

I think therefore I am... sometimes right. [img]images/icons/wink.gif[/img]
__________________
Posting Guidelines
Reply With Quote
  #4  
Old 09-06-2001, 11:23 AM
BillSoo's Avatar
BillSooPing ----> Slow!!! BillSoo is offline
Code Meister

Retired Moderator
* Guru *
 
Join Date: Aug 2000
Location: Vancouver, BC, Canada
Posts: 10,441
Default Re: Ping ----> Slow!!!

If you put a doevents within your loop, you *might* be able to cancel the loop, depending on how you've coded it.

For instance:

dim bDone as boolean 'module level or global variable

....
'code in some sub routine...
bDone = false
for i = 1 to 50
ping
doevents
if bDone then exit for
next i

....

sub cmdCancelButton_Click()
bDone = true
end sub

In the for-next loop, you check the value of the bDone flag to see if the user pressed the cancel button. The DoEvents is there to give the program a chance to respond to the click event.



"I have a plan so cunning you could put a tail on it and call it a weasel!" - Edmund Blackadder
__________________
"I have a plan so cunning you could put a tail on it and call it a weasel!" - Edmund Blackadder
Reply With Quote
  #5  
Old 09-07-2001, 06:40 AM
boy...
Guest
 
Posts: n/a
Default Re: Ping ----> Slow!!!

Ping --- sends 32byte data from a computer to another.

i think, It should be same as Scanning a IP. Why people can

make programs which can scan over 200 ports in one minute

without any delay?

What are the differeneces between ping and scan? anyone can tell me ? I am very interested in winsock.ocx, i would like to know more about it! Thank you all!



a novice <P ID="edit"><FONT class="small"><EM>Edited by boy... on 09/07/01 07:41 AM.</EM></FONT></P>
Reply With Quote
  #6  
Old 09-07-2001, 06:49 AM
Garrett Sever's Avatar
Garrett SeverPing ----&gt; Slow!!! Garrett Sever is offline
Strange Brewer

Retired Moderator
* Guru *
 
Join Date: Jun 2001
Location: AddressOf Insomnia
Posts: 2,815
Default Re: Ping ----> Slow!!!

If you want Winsock help, go to the Communications Help board. Actually, a mod/admin should probably move "ping" questions there too.

Regards,
-<font color=purple>The Hand</font color=purple>

<font color=green>All your code are belong to us...</font color=green> [img]images/icons/tongue.gif[/img]
__________________
"The lights below
You know they'll bleed forever
Get back as the cores blow
Let me fall..." - Dismantled, "Cornered"
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Ping ----&gt; Slow!!!
Ping ----&gt; Slow!!!
Ping ----&gt; Slow!!! Ping ----&gt; Slow!!!
Ping ----&gt; Slow!!!
Ping ----&gt; Slow!!!
Ping ----&gt; Slow!!! Ping ----&gt; Slow!!! Ping ----&gt; Slow!!! Ping ----&gt; Slow!!! Ping ----&gt; Slow!!! Ping ----&gt; Slow!!! Ping ----&gt; Slow!!!
Ping ----&gt; Slow!!!
Ping ----&gt; Slow!!!
 
Ping ----&gt; Slow!!!
Ping ----&gt; Slow!!!
 
-->