| Author |
Warning: To avoid potential deadlock networking, should be performed in a diff.thread.
|
vibhor Bhat
Greenhorn
Joined: Jan 15, 2009
Posts: 2
|
|
hi,
i am trying to do networking with the help of HttpConnection class but always get this warning either i use thread or not..
Warning: To avoid potential deadlock, operations that may block, such as
networking, should be performed in a different thread than the
commandAction() handler.
and after this the MIDP application is not working.
this is my code & it is a code for a mobile application.
anybody can please update this code because i am trying to call in a different thread but its not working.
[HENRY: Added Code Tags]
|
 |
Henry Wong
author
Sheriff
Joined: Sep 28, 2004
Posts: 16680
|
|
anybody can please update this code because i am trying to call in a different thread but its not working.
How are you "trying to call in a different thread"? I don't see any threading code here.
Henry
|
Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
|
 |
Chanakya Gupta
Greenhorn
Joined: May 23, 2010
Posts: 27
|
|
Hi Vibhor
Sorry for picking up an old thread !
But we are getting the same error
while running a MIDlet.
|
SCJP6, SCWCD5, SCMAD
|
 |
 |
|
|
subject: Warning: To avoid potential deadlock networking, should be performed in a diff.thread.
|
|
|