Download the free trial version
Features
Tutorials and manuals
Showcase
Screenshots

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

Questions (Windows Mobile) Post any question regarding Basic4ppc.

Problem (Bug?) with http lib on Device

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-03-2009, 01:23 PM
CryoGenID's Avatar
Knows the basics
 
Join Date: Feb 2009
Location: Munich, Germany
Posts: 62
Default Problem (Bug?) with http lib on Device

Hello everybody :-)

I currently have a nasty problem with the http-library...
I had found a demo-script from Erel, downloaded it and adapted it a little bit (added a button to clear the textbox and changed the URL of the php-script which gets called).
It runs perfectly on the desktop, I can query the PHP-Script lots of times: no problem.

BUT:
On the device I can only query the script twice. This is reproducable, if I click "send" for a third time, it takes forever and then I get a "Timeout".

Is this a bug in the http-lib for the device or am I missing something here? ;-)

As stated before, on the desktop I can send as often as I want to. But on the device only twice. If you leave the program running on the device and try after 10 minutes or so again, it again works twice...

So I need:

Hopefully we can find out what (possibly I *g*) did wrong :-)

I have attached the file so you can try it out... Perhaps it is just my phone (HTC Touch Diamond, WM 6.1)

Thanks and best regards,

Chris
Attached Files
File Type: sbp HTTP-POST.sbp (1.4 KB, 12 views)
Reply With Quote
  #2 (permalink)  
Old 07-03-2009, 06:42 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 5,933
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Other people have experienced this HttpWebRequest on Compact Framework: The operation has timed-out — Johan de Koning The reason is that they haven't closed the WebResponse.

Try using "Response.Close" in your Sub Response_Stream.
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
Reply With Quote
  #3 (permalink)  
Old 07-04-2009, 07:43 AM
CryoGenID's Avatar
Knows the basics
 
Join Date: Feb 2009
Location: Munich, Germany
Posts: 62
Default

agraham,

once again you saved me

Thanks a lot!

It now works like a charm!

What would I (and this community) do without you? ;-)

Best regards,

Chris
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 GetResponse error on device only willisgt Questions (Windows Mobile) 12 07-12-2009 05:03 PM
wm5 device-path problem enonod Questions (Windows Mobile) 4 05-26-2008 05:28 PM
HTTP POST on Device - error message TWELVE Questions (Windows Mobile) 6 04-26-2008 10:35 AM
Authentication with HTTP libarary problem agraham Questions (Windows Mobile) 6 12-25-2007 12:50 PM
HTTP Lib problem Lasse Questions (Windows Mobile) 5 06-04-2007 04:49 PM


All times are GMT. The time now is 01:34 PM.


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