开发者

MIDP application, blocked by Connector.Open(..)

I've been having the worst time of my life trying to understand why this is happening, any input would be greatly appreciated.

The code in question runs in a diffrent thread then the midlet, although the thread starts after the connection is made, I've tried the other way around and I end up at the same spot.

When executing this line (with a proven and working server address of course):

this开发者_如何学运维.socket = (SocketConnection) Connector.open(url);

nothing happens and when I hit pause in debug it takes me to this msg:

@exception IllegalMonitorStateException if the current thread is not
the owner of the object's monitor.


I think you should implement your socket and network code/modules in a seperate thread.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜