| Reply | « Previous Thread | Next Thread » |
|
Hello I have a problem with my application..now I try to explain..
I have a class method that use "socket" from library socket.. Code:
sock_im=socket(AF_INET,SOCK_STREAM)
sock_im.connect((ip, port))
f_im=sock_im.makefile("rb")
Code:
while 1: try: risp=f_im.readline() except: #error f_im.close() In this method there isn't recursion and I use other external library: pykeylock msys appswitch appuifw2 Now my problem is that if I use gprs connection the application is blocked after 19/20 minutes of socket inactivity and I must kill it. If I use gprs connection it takes 30 minutes about. I try with different phone model and I look that on e51 with wifi after 2 hours there aren't problems. Can you help me?.. I also monitored the ammount of free ram but it is always sufficient for the program I use pys60 1.4.5.
Last edited by jondavisofkorn : 2009-06-29 at 15:31.
|
| jondavisofkorn |
| View Public Profile |
| Find all posts by jondavisofkorn |
|
Join Date: Nov 2007
Posts: 317
Location: Sertaozinho/Brazil
marcelobarrosalmeida
Online
Forum Nokia Champion
|
|
Hi jondavisofkorn
Code:
while 1: try: risp=f_im.readline() except: #error f_im.close() Marcelo Barros Nokia E71, N800, N95 and XM 5800 http://www.croozeus.com http://wordmobi.wordpress.com http://jedizone.wordpress.com |
|
But I use PyS60 1.4.5.. it has the same behavior?
However in the next post I'm going to post the complete method so you can see all the code ![]() Thanks for your reply |
| jondavisofkorn |
| View Public Profile |
| Find all posts by jondavisofkorn |
|
Join Date: Nov 2007
Posts: 317
Location: Sertaozinho/Brazil
marcelobarrosalmeida
Online
Forum Nokia Champion
|
|
In this case, yes. Or we have a found bug !
![]() I will try to test in 1.4.5 Marcelo Barros Nokia E71, N800, N95 and XM 5800 http://www.croozeus.com http://wordmobi.wordpress.com http://jedizone.wordpress.com |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| AutoStart My application at bootup | prakashs | General Symbian C++ | 7 | 2009-03-24 11:06 |
| Please Help! application runs on emulator but doesnt run on phone | qt_chenchen | General Symbian C++ | 37 | 2008-07-16 06:17 |
| Cannot run console application on S60 3rd gen (nokia 6110 navigator) | mcbure | General Symbian C++ | 4 | 2008-07-15 12:37 |
| BIO Message Parser Starting Application + Security Hole ? | Cr7pt0r | General Symbian C++ | 1 | 2008-05-08 13:32 |
| Not able to deploy an updated application on the mobile -it deploys a new application | kishban | Mobile Java General | 0 | 2005-05-28 11:20 |