Former listeners still running after shutdown

Hi people,

My app has a thread with the listeners for various events (email, SMS, phone).  If I use System.exit (0) the application closes. But listeners continue to meet.  Listeners will be canceled because the App went or they will remain recorded forever?  In the case of an unhandled Exception cause App termination, restart the application causes the double declaration of each event.

I use OS 4.7 (storm) and OS 4.5 (curve).

If you app is no longer in the running, they will disappear after a reboot (removing the battery).

However, a better way to manage these listeners should keep a reference to them and to remove them when the application terminates.

Tags: BlackBerry Developers

Similar Questions

  • scheduled task shutdown.exe still running after disabling SERVER 2008 R2

    Hello

    A scheduled task still running after people with disabilities (shutdown.exe/s) on my network. We have disabled the task in the Task Manager. and updated computers with gpupdate/force. However, it stops again. How can I make this stop?

    This issue is beyond the scope of this site and must be placed on Technet or MSDN

    http://social.technet.Microsoft.com/forums/en-us/home

    http://social.msdn.Microsoft.com/forums/en-us/home

  • Startup Repair still running after 2 hours 20 minutes.

    HP Pavilion dv6t-6100

    Windows 7 Home Premium 64-bit

    Removal of battery - based power alternative

    When I tried to boot my laptop this morning, he got on the screen Windows logo, sitting there for about 15 seconds (more than normal) and then a blue screen. I not record the full error message, but it says something about a dll 'known' and could not start. I pressed and pressed the power button a few seconds so he can close.

    After a wait of a few seconds, I pressed the power button and the display immediately goes to a black screen with the repair options to run (recommended) or Windows to start normally. I chose to carry out repairs. It was there well over 2 hours. The display shows Microsoft Corporation and animated progress bar on a black screen.

    Is this normal?

    I have to leave shortly and will be away for a few hours and want to know if I should leave it as what. Should I disable?

    Thanks for any help.

    Hello

    Error 305 would indicate a hard failure and it's compatible with the problem you describe in your first post.

    If your laptop is under warranty, contact HP for the replaced HARD disk.

    If you live in the United States, contact HP here.

    If you are in another part of the world, begin here.

    If you are out of warranty and would like a guide to replacing the HARD drive yourself, please let me know - also include the size (IE 750 GB) of HARD drive you have currently.

    Kind regards

    DP - K

  • FF 32.0 process still running after the closure of FF under Linux Mint.

    The application databases

    Name: Firefox
    Version: 32.0
    User Agent: Mozilla/5.0 (X 11; Ubuntu; Linux x86_64; RV:32.0) Gecko/20100101 Firefox/32.0

    Reports of incidents for the last 3 days

    All Crash reports

    Extensions

    Name: LastPass
    Version: 3.1.1
    Enabled: true
    ID: [email protected]

    Name: Mint search Enhancer
    Version: 1.0
    Enabled: true
    ID: [email protected]

    Name: elegant
    Version: 1.0.7
    Enabled: true
    ID: {46551EC9-40F0-4e47-8E18-8E5CF550CFB8}

    Graphics

    Description of the adapter: X.Org - Gallium 0.4 on AMD RS780
    Device ID: Gallium 0.4 on AMD RS780
    Driver version: 3.0 Mesa 10.1.0
    GPU accelerated Windows: 0/1 Basic
    Vendor ID: X.Org
    WebGL Renderer: X.Org - Gallium 0.4 on AMD RS780
    windowLayerManagerRemote: false
    AzureCanvasBackend: Cairo
    AzureContentBackend: Cairo
    AzureFallbackCanvasBackend: no
    AzureSkiaAccelerated: 0

    Important change preferences

    Browser.cache.Disk.Capacity: 358400
    Browser.cache.Disk.smart_size_cached_value: 358400
    Browser.cache.Disk.smart_size.first_run: false
    Browser.cache.Disk.smart_size.use_old_max: false
    Browser.cache.frecency_experiment: 4
    browser.places.smartBookmarksVersion: 7
    browser.search.useDBForOrder: true
    browser.sessionstore.upgradeBackup.latestBuildID: 20140830210550
    Browser.Startup.homepage: http://www.att.yahoo.com
    Browser.Zoom.Full: false
    dom.mozApps.used: true
    extensions.lastAppVersion: 32.0
    keyword. URL: https://duckduckgo.com/?t=lm & q =
    network.cookie.prefsMigrated: true
    Network.protocol - handler.app.apt: / usr/bin/apturl
    Network.protocol - handler.app.apt + http: / usr/bin/apturl
    Network.protocol - handler.warn - external .apt: true
    Network.protocol - handler.warn - external .apt + http: true
    places.database.lastMaintenance: 1411426705
    places. History.expiration.transient_current_max_pages: 104858
    plugin.disable_full_page_plugin_for_types: application/pdf
    plugin.importedState: true
    Print.print_bgcolor: false
    Print.print_bgimages: false
    Print.print_colorspace: default
    Print.print_downloadfonts: false
    Print.print_duplex: 0
    Print.print_evenpages: true
    Print.print_in_color: true
    Print.print_margin_bottom: 0.5
    Print.print_margin_left: 0.5
    Print.print_margin_right: 0.5
    Print.print_margin_top: 0.5
    Print.print_oddpages: true
    Print.print_orientation: 0
    Print.print_page_delay: 50
    Print.print_paper_data: 0
    Print.print_paper_height: 279.40
    Print.print_paper_name: na_letter
    Print.print_paper_size_type: 1
    Print.print_paper_size_unit: 1
    Print.print_paper_width: 215.90
    Print.print_plex_name: default
    Print.print_resolution: 600
    Print.print_resolution_name: default
    Print.print_scaling: 1.00
    Print.print_shrink_to_fit: true
    Print.print_to_file: false
    Print.print_unwriteable_margin_bottom: 56
    Print.print_unwriteable_margin_left: 25
    Print.print_unwriteable_margin_right: 25
    Print.print_unwriteable_margin_top: 25
    privacy.sanitize.migrateFx3Prefs: true
    Storage.vacuum.Last.index: 1
    Storage.vacuum.Last.places.sqlite: 1409542471

    JavaScript

    Incremental GC: true

    Accessibility

    Enabled: false
    Prevent accessibility: 0

    Versions of the library

    NSPR
    The expected minimum version: 4.10.6
    Version: 4.10.6

    NSS
    The expected minimum version: 3.16.4 based ECC
    Version: 3.16.4 based ECC

    NSSSMIME
    The expected minimum version: 3.16.4 based ECC
    Version: 3.16.4 based ECC

    NSSSSL
    The expected minimum version: 3.16.4 based ECC
    Version: 3.16.4 based ECC

    NSSUTIL
    The expected minimum version: 3.16.4
    Version: 3.16.4

    Experimental features

    Firefox crashes or does not - how to fix in this article there is a section of troubleshooting Firefox when it blocks when closing, please see these instructions. This aid?

  • Basics of microsoft, as installed on vista, still works after that I have switch to firefox?

    I am moving from Vista to Firefox and want to know if Microsoft Essentials will continue to run after I made the change. MSE has preformed well for many years and I would like to avoid having to change to another anti-virus program.

    Actually, you will still have Windows Vista, even if you use Firefox rather than the browser Internet Explorer (IE) that comes with Windows.

    Another browser of your choice requires no modification of your security software. Also, it does not replace your security software. Unlike some programs that require special configuration steps, Firefox and Microsoft Essentials should get along very well.

  • HP 17-g121wm: goes black screen, but the computer still running (Linux)

    I use HP 17-g121wm laptop. The screen turns off at random 2-5 minutes after the start, sometimes earlier. The computer will still run, but the screen will be black (the backlight seems to stay lit, however). Any buttons I press on, nothing makes the screen back on, so I have to press the power button to turn off the laptop and back on.

    This problem does not occur when I start in Windows, but when I boot in Linux (I tried Ubuntu and Arch linux), the problem persists.

    I tried to boot with the kernel parameter 'nomodeset' grub, but when I do that I can't enter a graphical environment, because the amdgpu driver is based on Kernel Mode Set (KMS) without nomodeset.

    I prefer to use Linux on this laptop for programming and development, preferably of Arch Linux. So, any help would be greatly appreciated.

    jreynaud1

    I run Linux distributions on my desktop PC and from your description, the problem is almost certainly the lack of video drivers, especially in the case of the AMD video chipsets.

    I'm not familiar with the Ark, but I don't know with Ubuntu, which I had problems driver AMD for several versions now, and the last, Xenial 16.04, fglrx drivers simply will NOT work because they are not supported with the new version of the kernel and will not be - as AMD is working on a new driver open source to replace fglrx.

    HP forums provides no support for Linux issues, if my suggestion is to check with the forums Linux appropriate for each distribution.

    In addition, as you use a video chipset AMD, you might find the info you need on the Phoronix forums: AMD/ATI Linux - Phoronix Forums

    Good luck
    ========================================================================
    I'm a volunteer and I do not work for, or represent, HP.
    ---------------------------------------------------------------
    If my post helped you, please click on the Thumbs-Up symbol on my post to say thank you.
    If my posts resolved your issue please click "accept as a Solution.
    ========================================================================

  • Re: Screen keeps going blank even if Equim M70 is still running

    My screen keeps going blank even if the computer is still running.
    Last night, I managed to make it work again for 20 minutes while it was not plugged in, but as soon as it was plugged it erased.

    Today, even when he was not plugged in after 20 minutes the screen starts to Flash and then deleted again.

    Any help?

    > Today, even when he was not plugged in after 20 minutes the screen starts to Flash and then deleted again

    Hmmm... to me it looks really good mine a bit a hardware problem if the screen starts flashing, then erased.
    Maybe there's something wrong with the screen itself or with the other party as FL inverter.
    FL inverter is responsible for part of the screen backlight control.

    In my opinion, these two parts must be checked!
    But I doubt you can do that without additional aid by the ASP technician and so I recommend to ask a technician for assistance.

    Concerning

  • The tune up is scheduled for 1 AM, my computer is turned off, only look upward still run?

    The tune up is scheduled for 1 AM, my computer is turned off, only look upward still run? Or I have to leave my computer?

    Welcome to the HP Forum!

    AKCharlie wrote:

    The tune up is scheduled for 1 AM, my computer is turned off, only look upward still run? Or I have to leave my computer?

    Yes.

    You will need to have the laptop for a tuneup to happen.

    I recommend that your schedule the tuneup for a long time when you are not using the laptop during the day so you can stop it after what he's done.

    Kind regards
    ERICO

  • Deleted form field still appear in email

    I created a form on my site; However, I have since deleted some form fields. But, after that the user presses submit and I get my email notification, these deleted form fields are still there (in my email - not the site). Is - it there anyway delete these?

    Wait, I have reproduced a similar form: adding a field of custom, tested, deleted text, tested again and Yes: the additional text field still appears in my email too! However, it has an empty value. This is certainly a bug, and I will report it. Thank you!

  • Need help choosing a new computer to run After Effects

    Hi all

    I waited to buy a desktop computer until I could set up something really good, but running After Effects on my laptop is not just cut it.  It slows down everything and when you try to use the feature plays only 6 frames per second. That being said, I need something that will give me better performance than my laptop but don't break the Bank.  (That way I can still move to a more desirable machine.)  I'm a noob when it comes to shopping for computers that go beyond the disk space and wifi, so I asked around, but honestly I'm more often conflicting opinions . I said the most important GPU, I said GPU is not serious at all.  It goes the same for the CPU.  I was also told that it's okay if I get something with integrated graphics on dedicated, etc.. This is where I hope you guys can help, since you actually understand the program I run.

    I would buy something already built, so I don't have to worry about what anyone screwing.  I've been thinking to get a desktop computer cheap off of ebay (as long as it will work better than my laptop) and then adding on it, but I don't know if it's the wiser decision.  All desktop computers can still be improved or they hit a point where they are worthless?

    Here are the specifications of my laptop:

    Windows 10 home

    Intel core i3 cpu M380 @ 2.53 GHZ

    4 GB of ram (3.80 GB usable)

    64 bit

    1 TB HARD disk drive

    Intel HD (internal) graphics with a total of 1696 MB graphic memory and 64 MB dedicated video memory


    Is there something out there that would be more fluid than my laptop, but for cheap AE?  Here are a few I've been Watch: Dell Optiplex 960 (3 GHz Quad Core Q9650 / 4 GB RAM / 160GB HDD)

    IBM Thinkcentre M58 PC Windows 7 Pro Desktop Core 2 Duo 3.0 GHz/8 GB / 250 GB HD with intergrated graphics

    A generation custom (with integrated graphics), including: Card mother Z87 - G41 / 8 GB RAM FURY HYPER / Gear solid 400w PSU / LG DVD PLAYER / INTEL PROCESSOR (3.2GHZ) G3258 / 240GB Sandisk Ultra II SSD / MSI cases


    And this one: AMD 4.2 Ghz Quad Core 8 GB RAM 1 TB Hdd/integre graphic.

    Thank you in advance for your help!




    For AE the only things that really affect performance are the cores, clock speed and memory.

    We must look at least an i7 quad core systems with hyper threading (6 or 8 core is much better, but more expensive) and at least 32 GB of memory. You must also at least two SSD, one for the OS, one media and projects. The video card is completely irrelevant for AE, any card $ 30 is sufficient.

    See Page Tweakers

  • Concurrent Mark Sweep is still running

    Hello guys!

    I am trying to understand the behavior of the Garbage Collector in my running JAVA 1.5_U21 JAVA virtual machine.

    After a server restart, only small collections (ParNew) were executed. During this period, the nets were stopped for a short time.

    However, something is triggering of CMS and after that the CMS works always (I understand that CMS can be triggered by old gen p.e., but it should collect several times, not all the time!). Before this trigger CPU consumed by GC is very low, however, when CMS begins to run permanently CPU consumption increases a lot.

    I do not understand why CMS is still running because as you can see in the following JVM runs under the threshold or am I wrong?

    TAS:

    Used: 1.454.824 KB

    Engaged: 2.490.368 KB

    Max: 2.490.368 KB

    Non-TAS:

    Used: 172,401 KB

    Engaged: 227,264 KB

    Max: 229,376 KB

    Old Gen:

    Used: 672,222 KB

    Engaged: 1.572.864 KB

    Max: 1.572.864 KB

    Perm Gen:

    Used: 142,036 KB

    Engaged: 196,608 kb

    Max: 196,608 kb

    Code cache

    Used: 30,487 KB

    Engaged: 30,656 KB

    Max: 32,768 KB

    JVM arguments are the following:

    -Xms2560m-Xmx2560m-Xmn1024m - XX: + UseConcMarkSweepGC - XX: NewSize = 1024 m - XX: MaxNewSize = 1024 m - XX: SurvivorRatio = 6 - XX: TargetSurvivorRatio = 90 - XX: PermSize = 192 m - XX: MaxPermSize = 192 m - XX: + UseParNewGC-Xss1024k...


    Any idea?


    Thank you very much

    Hello

    You can find some calculations on the number of threads CMS. I don't know how many cpu's your system and what is the number of threads by default CMS. May be you need to set '-XX:ParallelCMSThreads = n "parameter in your settings memory to prevent your cpu use java process.

    On Java, processor and parallel garbage collection sets - c0t0d0s0.org

  • When I close thunderbird is still running in the background and always using data?

    I'm with an internet provider that has limited use of data per month. If I close Thunderbird when done using it it is still running in the background and using the data or is it closed here for not to retrieve messages or using the data?

    When you close Thunderbird, it cannot check or retrieve new messages.
    Not sure what you mean with "always running in the background.
    When you close Thunderbird is closed. Period.

  • my calendar has frozen after trying to move a clip in e-mail by using the calendar; still frozen after that force them to leave

    my calendar has frozen after trying to drag and drop a piece of mail to the calendar; still frozen after forcing them to leave... using OS X v 10.9.5

    Get the error that civilian could not be refreshed... requires a force quit and then when reopened, get the same message

    Try restarting your Mac in safe mode:

    -Stop your Mac

    -Wait until your computer turns off and after that press the power button

    -Just after you hear the startup tone, press in and hold the SHIFT key

    -Release the SHIFT key when you see a gray Apple sign and the progress under this sign bar

    -Once you see office, start a scan Disk Utility to detect and repair file system errors (remember to choose your primary hard drive)

    -Click on the disc to check, then, if requested to solve the problems on the repair disk

    -After that click on verify disk permissions, and then click Repair disk permissions

    -Once the process is complete, stop your Mac and turn it on again after 30 seconds

    I hope this helps!

  • Re: Driver for Toshiba system do not run after instalation

    Toshiba system driver not running after instalation in 64-bit windows 8

    Please post more information. Model of laptop, OS, what you're doing and which driver exactly make trouble.

  • Satellite P100-324: the Fans are still running

    Hi to you all,.

    Maybe you can answer me the question.
    Is it normal that my laptop fans are still running. I put the 'silent' settings in the bios and forced the laptop to run always on 1000 MHz, if I only use it for writing
    in Word or reading emails.

    It's really annoying. I don't know what to do.

    Thankz for your help in advance

    Michael

    Hello Michael

    It is nothing unusual that cooling fan runs constantly on low speed. On modern laptops, there is a powerful hardware that needs to be cooled correctly. Especially many different processes are active in the background and CPU is standing under pressure. Not much when you use just the laptop for writing, but obviously enough to increase the temperature of the CPU.

    Try it please set the CPU and cooling to a minimum level method. Also check the Task Manager and end the process, you don't need. Maybe this will help!

Maybe you are looking for

  • HP Pavilion dv6700 FE811UA: alternative of the motherboard that supports windows 7 did not bound by windows vista

    I have what is essentially a hp notebook pc pavilion dv6985se.  The case is the special edition of the copper color model.  Motherboard of the laptop being (for lack of a better way to explain it), "tattooed" with windows vista, I tried to upgrade to

  • Contacts are invisible after having removed from facebook and twitter

    Hello I had a strange problem occur. My phone became increasingly slow so I decided to try to remove the facebook and twitter accounts (following the instructions of another post) to see if that helped. He did. My phone is now faster than ever, but a

  • string to array OR array to string

    Hey all,. I'm stuck and the positions that I have sought do not seem to answer my question... I have several tables 1 d that I'm running into a function table build and try to put several tables of channels before that data in a file, but I can't get

  • Is it possible to downgrade Windows Vista to Windows XP?

    original title: download Windows XP. I currently have a 2007 PC with Windows Vista installed.  I don't like Vista.  I used Windows XP at work and want to download this os instead of Vista.  How could I go about this?

  • Server FTP WRT610n

    I activate the FTP server and internet access and then click 'specify the folder', fill in the info on the part of: Display name FTPShare Location/foreign_shares/MY BOOK / FTP Admin r/w access After I save the settings, there is nothing in the summar