Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Basic4ppc Wishlist > Bug Reports
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Bug Reports Post about errors or bugs encountered.

HTTP POST error

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-24-2008, 01:22 PM
Knows the basics
 
Join Date: Jan 2008
Posts: 64
Default HTTP POST error

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
File Type: sbp 1.sbp (1.2 KB, 16 views)
Reply With Quote
  #2 (permalink)  
Old 05-24-2008, 01:38 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Quote:
Originally Posted by Elrick View Post
Is it really a bug?
No. add line "response.close" and the problem goes away.
Reply With Quote
  #3 (permalink)  
Old 05-24-2008, 01:56 PM
Knows the basics
 
Join Date: Jan 2008
Posts: 64
Default

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
Reply With Quote
  #4 (permalink)  
Old 05-24-2008, 02:06 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Quote:
Originally Posted by Elrick View Post
But why always after the third time?
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.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
HTTP POST error message miataman Questions (Windows Mobile) 10 07-11-2008 10:28 AM
HTTP Post fails if Umlauts sent and UTF-8 is used TWELVE Questions (Windows Mobile) 11 04-29-2008 10:13 AM
HTTP POST on Device - error message TWELVE Questions (Windows Mobile) 6 04-26-2008 09:35 AM
HTTP Post nsidney Questions (Windows Mobile) 4 01-30-2008 09:52 AM
HTTP Post ohkovar Questions (Windows Mobile) 3 07-07-2007 04:36 PM


All times are GMT. The time now is 03:21 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0