|
-
Sep 4th, 2009, 11:14 PM
#1
Thread Starter
Fanatic Member
InternetopenURL & Loop application die
Hello ,
i'am having a issue using InternetopenURL & Loop mean i have to go on some website via loop using InternetopenURL , i do that to trick some website page view 
anyway the problem is that i have loop mean 300 or 400 hit or more
the problem i'am facing is that after 100 hit or so the application stay in task manager and no more executing the link
i dont know how i can avoid that it even use a good cpu usage at start but after a short time it stuck at the same cpu and value and dont still execting but still showing in task manager
does someone know the issue or somehow to solve that mean no let the application die still executing cause i have at the end msgbox which show the end and i could never get that messagebox
thanks
-
Sep 5th, 2009, 01:53 AM
#2
Re: InternetopenURL & Loop application die
Isn't there any error raised? Have you tried putting DoEvents in your loop?
-
Sep 5th, 2009, 09:51 AM
#3
Thread Starter
Fanatic Member
Re: InternetopenURL & Loop application die
yes there is no error but i did made a local test and it stop at 200
on normal mode it should go until 300 and show msgbox as it finish and end
but it stop at 200 and stay in taskmanager i dont know why 
yes i did added DoEvents and remove it added pause on each loop still same
-
Sep 15th, 2009, 05:42 AM
#4
Thread Starter
Fanatic Member
Re: InternetopenURL & Loop application die
ok i explain on another way how to do loop via InternetopenURL when InternetopenURL is buzy?
Thanks
-
Sep 15th, 2009, 06:31 AM
#5
Re: InternetopenURL & Loop application die
you are trying to make 300 similtanious connections to the same site?
hardly surprising it hangs up
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
-
Sep 15th, 2009, 06:33 AM
#6
Thread Starter
Fanatic Member
Re: InternetopenURL & Loop application die
 Originally Posted by westconn1
you are trying to make 300 connections to the
yes once i reach like 80 connection it die on task manager & the final end message dont come out mean the app die
is there anyway to use if not buzy internetopenurl then go.. so to avoid app use too much cpu & dont continue full code & die
thanks
-
Sep 15th, 2009, 06:49 AM
#7
Re: InternetopenURL & Loop application die
if it does not connect, close before trying again
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|