Results 1 to 8 of 8

Thread: Inet causes program to hang

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2007
    Posts
    4

    Unhappy Inet causes program to hang

    I'm working on a piece of client software which uses inet to login, for example

    login = netClient.OpenURL("http://www.exampleurl.com/_login.asp?userid=" & userid)

    the page then returns a 1 or a 0 and the program checks to make sure the login was successful etc.

    the problem is when i close the program, it freezes, this is especially frustrating because i have to ctrl-alt-del the development ide everytime i test the program. ive tryed everything i can think of including netClient.cancel and making a doevents loop for netClient.StillExecuting but it still freezes everytime i exit

    Please help i'd be very grateful

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Inet causes program to hang

    How are you closing the program?

  3. #3

    Thread Starter
    New Member
    Join Date
    Oct 2007
    Posts
    4

    Re: Inet causes program to hang

    just clickin the X

    and the program closes fine when i comment out the OpenURL line

  4. #4
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Inet causes program to hang

    Does it happen on all URL's or just that one?

  5. #5

    Thread Starter
    New Member
    Join Date
    Oct 2007
    Posts
    4

    Re: Inet causes program to hang

    It happens with all urls, I even tried just putting about:blank to return nothing and it still freezes.
    And just to see if it was anything in my program triggering it within inet, i created a new project in vb, put only an inet control, on loading of the form called Inet1.OpenURL("http://www.yahoo.com/"), waited for it to load, tryed to close the program, and the same thing, it just froze, i had to ctrl-alt-del to close the whole ide.

  6. #6
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Inet causes program to hang

    Quote Originally Posted by SilverLogic
    i created a new project in vb, put only an inet control, on loading of the form called Inet1.OpenURL("http://www.yahoo.com/"), waited for it to load, tryed to close the program, and the same thing, it just froze, i had to ctrl-alt-del to close the whole ide.
    Then something funky is going on with your browser, your PC, your web connection, something because I just did exactly what you did with a new project. Yahoo popped up, I closed the form, and everybody was happy.

  7. #7

    Thread Starter
    New Member
    Join Date
    Oct 2007
    Posts
    4

    Angry Re: Inet causes program to hang

    Thanks for your help but nevermind, i have my vb set up to autosave my files everytime i click run, well for some reason it decided it would completly erase all the work ive been doing so ive given up programming for awile and im trying very hard not to throw my laptop out of the window right now. Thanks microsoft for another great reason why i hate you

    Edit: and before i lost my work i did get another form working with just the openurl yahoo test i mentioned above, so long as i didnt have my other program open in vb ... strange

    Well i was trying to pinpoint what the problem was so i erased all the code and everything off of the form and deleted every module and form except main from the project, so it was pretty much exactly the same as a new project with just inet and a button, same as the first test with yahoo, well i ran that and it still froze, so it's something project specific, i didn't change any settings or anything, so i don't understand why its only happening to this one program (maybe god hates me?), well anywho i tryed to use the "save form as..." and "save project as..." to save the copies to a NEW location so as NOT to overwrite my existing files, well who woulda thunk it but vb DOES indeed overwrite your current work files even if you move them to a new location! yay microsoft for your innovations once again
    Last edited by SilverLogic; Oct 22nd, 2007 at 07:24 PM.

  8. #8
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Inet causes program to hang

    Quote Originally Posted by SilverLogic
    i have my vb set up to autosave my files everytime i click run,
    This would explain why it overlays things. I've never used that setting. I prefer to make the decision on when to save and when not to save.

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