BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 07-29-2011, 08:05 AM   #1
pandre
New Member
 
Join Date: Jul 2011
Model: 9700
PIN: N/A
Carrier: Vodafone
Posts: 3
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
hrbuckley
BlackBerry Extraordinaire
 
Join Date: Jan 2006
Model: LEZ10
OS: 10.0.10
Carrier: Rogers CA
Posts: 1,704
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
pandre
New Member
 
Join Date: Jul 2011
Model: 9700
PIN: N/A
Carrier: Vodafone
Posts: 3
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  
Old 08-02-2011, 07:01 AM   #4
hrbuckley
BlackBerry Extraordinaire
 
Join Date: Jan 2006
Model: LEZ10
OS: 10.0.10
Carrier: Rogers CA
Posts: 1,704
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  
Closed Thread



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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


Original New DEC Digital DCJ11-AE 57-19400-09 Vintage CPU x 1pc picture

Original New DEC Digital DCJ11-AE 57-19400-09 Vintage CPU x 1pc

$100.00



DEC DIGITAL VINTAGE RA8X Control Panel picture

DEC DIGITAL VINTAGE RA8X Control Panel

$30.00



Vintage Gray Metal MCM Industrial File Box w/Weis Jan-Dec and Daily Cards w/Tab  picture

Vintage Gray Metal MCM Industrial File Box w/Weis Jan-Dec and Daily Cards w/Tab

$14.75



Vintage DEC PDP11 Option Bulletin MSV11-L Memory Module 1981 picture

Vintage DEC PDP11 Option Bulletin MSV11-L Memory Module 1981

$2.95



VINTAGE Bruker Board DEC W4P3042 for SpectroSpin 250 picture

VINTAGE Bruker Board DEC W4P3042 for SpectroSpin 250

$99.99



Dec/Adac Corp. D4-10390 Rev 6 Model 1664ATTL Output Pulse Board 1983 (B16) picture

Dec/Adac Corp. D4-10390 Rev 6 Model 1664ATTL Output Pulse Board 1983 (B16)

$189.99







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