BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 07-29-2011, 08:05 AM   #1 (permalink)
New Member
 
Join Date: Jul 2011
Model: 9700
PIN: N/A
Carrier: Vodafone
Posts: 3
Post Thanks: 1
Thanked 1 Time in 1 Post
Default “Application is not responding; process terminated” because of popScreen() ?

Please Login to Remove!

Does anyone in this forum know how to solve this:

stackoverflow.com/questions/6849085/blackberry-application-is-not-responding-process-terminated-because-of-uiappl/

Basically I think my application is blocking when I make UiApplication.getUiApplication().popScreen(active) ; and thus I get the "Application is not responding; process XPTO terminated" error.

Any ideas?

Best regards,
Pedro
Offline  
Old 07-29-2011, 08:14 PM   #2 (permalink)
BlackBerry Extraordinaire
 
Join Date: Jan 2006
Model: LEZ10
OS: 10.0.10
Carrier: Rogers CA
Posts: 1,704
Post Thanks: 20
Thanked 77 Times in 68 Posts
Default Re: “Application is not responding; process terminated” because of popScreen() ?

Why are you calling interrupt on actionThread? You aren't waiting or sleeping the thread. Your thread holds the event lock, making it the event thread, pops a screen off the stack, which causes onUndisplay to be called, where you interrupt actionThread which is the event thread and the thread which calls interrupt. I think this is the cause of your problem.

The way I usually do this (pop a screen off the stack when a thread completes) is to use invokeLater.

I assume you are trying to stop the thread when the user manually exits the screen. The way to do this is somehow cause the thread to voluntarily exit. Perhaps by closing the open connections and streams used to get the http data.
__________________
My other Blackberry is a PlayBook.
Offline  
Old 08-02-2011, 05:54 AM   #3 (permalink)
New Member
 
Join Date: Jul 2011
Model: 9700
PIN: N/A
Carrier: Vodafone
Posts: 3
Post Thanks: 1
Thanked 1 Time in 1 Post
Default Re: “Application is not responding; process terminated” because of popScreen() ?

Problem solved!

Solution here: supportforums.blackberry.com/t5/Java-Development/Application-is-not-responding-process-terminated-because-of/m-p/1234573#M168285
Offline  
The Following User Says Thank You to pandre For This Useful Post:
hrbuckley (08-02-2011)
Old 08-02-2011, 07:01 AM   #4 (permalink)
BlackBerry Extraordinaire
 
Join Date: Jan 2006
Model: LEZ10
OS: 10.0.10
Carrier: Rogers CA
Posts: 1,704
Post Thanks: 20
Thanked 77 Times in 68 Posts
Default Re: “Application is not responding; process terminated” because of popScreen() ?

Quote:
Originally Posted by pandre View Post
Problem solved!

Solution here: supportforums.blackberry.com/t5/Java-Development/Application-is-not-responding-process-terminated-because-of/m-p/1234573#M168285
Ah, good to know. Here is the link in clickable form since pandre can't post links yet: Re:
__________________
My other Blackberry is a PlayBook.
Offline  
The Following User Says Thank You to hrbuckley For This Useful Post:
pandre (08-02-2011)
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads for: “Application is not responding; process terminated” because of popScreen() ?
Thread Thread Starter Forum Replies Last Post
Agent 1 failed to start. Error code 5305 itdTechnician BES Admin Corner 15 09-22-2010 01:23 AM
Help with strange error log wbeers BES Admin Corner 23 07-14-2009 10:03 AM
BES Problems whitmer51 BES Admin Corner 8 03-17-2009 02:27 PM
Another Activating Initializing on BB Professional patrickd26 BES Admin Corner 4 05-06-2008 05:12 AM
Remote Database Connection Pool kerseyr BES Admin Corner 10 03-25-2008 06:15 AM





Copyright © 2004-2014 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.