Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Bug Reports
Home Register FAQ Members List 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, 02:22 PM
Knows the basics
 
Join Date: Jan 2008
Posts: 55
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, 8 views)
Reply With Quote
  #2 (permalink)  
Old 05-24-2008, 02:38 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,752
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
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, 02:56 PM
Knows the basics
 
Join Date: Jan 2008
Posts: 55
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, 03:06 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,752
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
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 On
Pingbacks are On
Refbacks are On

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


All times are GMT. The time now is 03:48 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0