This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

thread stuck  RSS feed

 
Steven M
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i'm running a http connection in a separate object/thread and need to wait for that http object to finish making it's requests before allowing my main MIDlet to proceed. the code in my main MIDlet code looks something like this:

while(oSync.isBusy()){
try{
Thread.sleep(150);
}
catch(InterruptedException e){

}
}

oSync is the http object. this should run fine, except the oSync object is giving me a 'MIDlet wants to send info. Is this okay?' confirmation window, which i can't seem to respond to, keeping isBusy() from ever returning false. how do i get around this?

tks
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!