Results 1 to 7 of 7

Thread: InternetopenURL & Loop application die

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2007
    Posts
    530

    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

  2. #2
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: InternetopenURL & Loop application die

    Isn't there any error raised? Have you tried putting DoEvents in your loop?
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2007
    Posts
    530

    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

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2007
    Posts
    530

    Re: InternetopenURL & Loop application die

    ok i explain on another way how to do loop via InternetopenURL when InternetopenURL is buzy?

    Thanks

  5. #5
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    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

  6. #6

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2007
    Posts
    530

    Re: InternetopenURL & Loop application die

    Quote Originally Posted by westconn1 View Post
    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

  7. #7
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    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
  •  



Click Here to Expand Forum to Full Width