HTTP POST error

Discussion in 'Bug Reports' started by Elrick, May 24, 2008.

  1. Elrick

    Elrick Member Licensed User

    Hello! I've found maybe a bug in http post method (using binary file lib). Attached code raises an error ALWAYS after you send post request for the third time. It occurs only on the device (compilled with "force QVGA" option). Is it really a bug?
     

    Attached Files:

    • 1.sbp
      File size:
      1.2 KB
      Views:
      89
  2. agraham

    agraham Expert Licensed User

    No. add line "response.close" and the problem goes away.
     
  3. Elrick

    Elrick Member Licensed User

    err... Me, cancel panic:) You know, i tried to find what's wrong about 2 hours... And the problem was because i am forget to do one very important thing... But why always after the third time? Maybe i'm just a bit tired... Sorry, this thread can be deleted. And thanks to agraham for his answer;)
     
  4. agraham

    agraham Expert Licensed User

    Response.close deletes a .NET HttpWebResponse object assigned from Response.GetResponse. There doesn't seem to be a limitation on the desktop but, and this is a guess, it looks like the Compact Framework can only support two open HttpWebResponse objects at once.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice