Hi guys,
I need some help. I have an issue with http connection in my J2me application. The problem is that the code for some reason hangs at getResponseCode(), and since there is no way to stop or abort a thread the app just hangs there. To sort this issue i created a connection watcher that after a few second of no activity calls the con.Close() on the method so that it can force it throw an IO interrupted exception and come out of it. But but but, it also hangs on the con.close() method as well. Now since the code hangs i have no way to make it come out of the thread loop. Obviously no point setting the loop boolean to false because the code is just stuck on that line and its not gona reach the bool.
Has any one of you faced this sort of problem? Any ideas please?? I have been trying different things but no avail.
ANy help will be appreciated.
Regards

Reply With Quote





