Results 1 to 4 of 4

Thread: Weird Freeze up? HttpWebResponse

  1. #1

    Thread Starter
    Member
    Join Date
    Oct 2009
    Posts
    49

    Weird Freeze up? HttpWebResponse

    Code:
      Public Sub SendMessage(ByVal message As String)
            On Error Resume Next
            Dim uri As New Uri("http://omegle.com/send?msg=" & message & "&id=" & ID)
            If (uri.Scheme = uri.UriSchemeHttp) Then
                Dim request As HttpWebRequest = HttpWebRequest.Create(uri)
                request.Method = WebRequestMethods.Http.Post
                Dim response As HttpWebResponse = request.GetResponse()
            End If
        End Sub
    So it freezes at "Dim response As HttpWebResponse = request.GetResponse()" some times. not all the time. It doesnt actually open the page untill i ask for the response but it locks the program up sometimes.. I have no idea how to fix this..

  2. #2

  3. #3
    Addicted Member
    Join Date
    Jul 2009
    Location
    Scotland/Japan
    Posts
    164

    Re: Weird Freeze up? HttpWebResponse

    Im Gonna Sound Weird But Have You Tryed To Use

    vb Code:
    1. Try
    2.  
    3. //your code here
    4.  
    5.         Catch ex As Exception
    6.  
    7. msgbox("Error:" & ex.message)
    8.  
    9. End Try

    when i had an issue with it freezeing up that helped me find out what was the issue hope it helps
    Between the world we see and the things we fear theres a realm of possibility

    D.L.H. Ind.

    We do what we do in out life to make Yours Simpler

  4. #4

    Thread Starter
    Member
    Join Date
    Oct 2009
    Posts
    49

    Re: Weird Freeze up? HttpWebResponse

    i cant actually go to the page since im posting. I just want to add a timeout or something

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