BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 08-10-2009, 03:34 AM   #1 (permalink)
New Member
 
Join Date: Aug 2009
Model: 8330
PIN: N/A
Carrier: no one
Posts: 2
Post Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy [SOLVED]IllegalStateException issue when closing a PopupScreen

Please Login to Remove!

Hi all,

I've got a PopupScreen that uses a LocationProvider to get a GPS position and that displays acquire state.
But there is an IllegalStateException when trying to close it in the
Code:
public void locationUpdated(LocationProvider provider, Location location)
event invoked by my LocationProvider. I already tried with the
Code:
synchronized(UIApplication.getEventLock()) {
this.close();
}
and

Code:
synchronized(this) {
this.close();
}
in both popup screen and a method inside another component but it changes nothing at all . If anyone already saw this issue or have an idea about how to resolve this, it would be very helpfull for me.

Thanks in advance

Last edited by return0 : 08-10-2009 at 04:20 AM.
Offline  
Old 08-10-2009, 04:19 AM   #2 (permalink)
New Member
 
Join Date: Aug 2009
Model: 8330
PIN: N/A
Carrier: no one
Posts: 2
Post Thanks: 0
Thanked 0 Times in 0 Posts
Talking

Issue solved by stopping the location provider before the closing method and by still using the synchronized property.
Code:
this.oLocationProvider.setLocationListener(null, 0, 0, 0);
synchronized(UiApplication.getEventLock()) {
this.close();
}
Sorry for the disturb, week end was very hard for me
Offline  
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

Dell PowerEdge 2600 Intel Dual Xeon Server Motherboard 6R263 With Chips
$65.0
 Dell PowerEdge 2600 Intel Dual Xeon Server Motherboard 6R263  With Chips pictureOctel 350 Voicemail Voice Mail Message Server 2 Cabinet
$6100.0
Octel 350 Voicemail Voice Mail Message Server 2 Cabinet picture3S S2071 2 Channel H.264 Real-time 60fps D1 Video Encoder Server A
$38.0
3S S2071 2 Channel H.264 Real-time 60fps D1 Video Encoder Server A pictureVideology Video Server SV11A-M4
$100.0
Videology Video Server SV11A-M4 pictureMoxa NPort 5230 Industrial RS-232/422/485 Device Server Connects to Ethernet
$74.99
Moxa NPort 5230 Industrial RS-232/422/485 Device Server Connects to Ethernet picture






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