Always do 'previous instance still active' help SDK 2.3 Webworks

My application is quite simple:

  • request ajax jquery (1.3.2) to the JSON web service to get a list of items
  • Browse the results to produce the list (about 20-30 items in the list)
  • clicks of the user on the point that launches another call ajax for billing details
  • to exit, I call system.exit() using the API
  • the application uses no custom extensions
  • in the application, I also use the messages and calendar API (for sending and adding reminders)

After a few sessions to use the application, I get the error of «Previous instance still active» (report http://go/memoryleaks) I know that the GC is called as I see the spinning out of clock.

in the application on OS7 Manager, I see that the app is more than 2 MB of memory sometimes.

Can anyone suggest what aspects of my application is originally memory leaks still?

Thank you

Chephren

I've isolated the offending script

I used the API to manage the key features of return (which worked as expected), somehow even on WW 2.3 SDK still is not releasing the back key listener. my code to handle previous key:

function trapForBackKey() {}
blackberry.system.event.onHardwareKey (blackberry.system.event.KEY_BACK, handleBack);
}

function handleBack() {}

If ($("#panel1").css ("display") is "none")
{
showPanel (document.getElementById ('tab1'), 'panel1');
}
on the other
{
BlackBerry.app.Exit ();
}

}

Of course I would have preferred to be able to control the previous button without getting the error, but for now, I'm leaving it.

Any ideas on how to control the previous button and make sure that the listener on the coast of JAVA came out?

Chephren

Tags: BlackBerry Developers

Similar Questions

  • My experience and a further debate on "the previous instance is still active.

    Hi, expert,

    I came across this problem to my application UI last a day and spent some time in this. The reason of the root, I discovered, is that the code does not call a code specific to one of the close method (last screen), so the following will not be cleaned:

    1. my entire user interface application is put into running store

    2 global envent listener for my application Ui

    After debugging, I discovered that this is due to the #1.  However on debugging time, I found that this problem is actually very difficult to debug because reproduce is inconsistent. So, even every time, I don't clean my application user interface of the store of my last screen of UI runtime user close, the will of "the previous instance is still active" appear after a certain (it seems to me that I should also leave my open screen for just a little bit time as well). So although I could not reproduce this problem anymore after the method of the last screen you add code to clean up close, I can't say 100% here that I solved the problem.

    It would be appreciated if someone would confirm the reproduction behavior of his that I've seen here.

    In this position, he also spoke against putting the entire application in the TERM store:

    http://supportforums.BlackBerry.com/T5/Java-development/UiApplication-put-into-RuntimeStore-vs-make-...

    I think that I should remove the code to put together Ui App store time anyway.

    I also searched the forum, I think the following 2 positions are most useful:

    http://supportforums.BlackBerry.com/T5/Java-development/previous-instance-still-active-issue/TD-p/37...

    http://supportforums.BlackBerry.com/T5/Java-development/help-with-quot-previous-instance-still-Activ...

    In the post, he said that he should be careful with the external auditor. For my purposes of background, I used the earpiece of the phone and found out that he would be called to the phone application. However, other headphones I've used as follows, I haven't not because they are called to external applications (must be in the thread principal current substantive application event)

    SystemListener2

    CoverageStatusListener, RadioStatusListener, WLANConnectionListener

    CodeModuleListener

    ApplicationMessageFolderListener

    Should I bother with the earphone as well?

    I suggest to cancel the registration of all and each listener when your application stops.

  • Previous instance of the pilot still in memory - hard drive Ext

    It is on a disk Toshiba external hard usb connected to a w XPS8700 8.1 which works fine on other computers. The error message -cannot load the driver the previous instance of the device still in memory driver. I uninstalled the drive ext devices and printers where it appears with an exclamation mark and error message, rebooted, removed and reconnected to the diff, usb ports, changed power outlets, registered disk management - does not appear there or to Mgr. Unit nothing works. Yet to test it on my another victory 8.1 computer recognizes it immediately and I have access to all files.  It scans the drive and found no errors. Files can be moved to the other hard drive. The ext drive works OK on the 8700 for more than a year.

    edit -- found the reason - USB Mass Storage Device has the error -previous instance... still in memory. Any suggestions? Uninstalling and restarting does not help. Diagnostic tests were all very well.

    The fixed! This was caused by Pépin of the history of the files. (I hate file history) I opened Device Mgr, selected hidden devices and found an old entry of WD ext hard drive and deleted. Historical files should be disabled before changing anything. because it gave me errors on the disc Toshiba not found or not connected. I had disabled the USB storage device and had to re - activate. This requires a reboot, and the Toshiba external drive is now active and functional.

    I am leaving the history of files and make manual backups instead.

  • (KEYBOARD ERROR) Windows cannot load the driver for this hardware device because a previous instance of the device driver is still in memory. (Code 38)

    (KEYBOARD ERROR)

    Windows cannot load the driver for this hardware device because a previous instance of the device driver is still in memory. (Code 38)

    Hello

    I don't know how it happened.

    I tried unistalling the software but have the same problem when connected to e

    Help, please

    Hi Davedirect,

    ·        It's a wired keyboard or a wireless keyboard?

    ·        Who is the manufacturer of keyboard?

    ·        Since when are you facing this problem?

    ·        You did changes to the computer before this problem started?

    ·        Have you tried to restart the computer and check if the keyboard works normally?

    However, you can try to uninstall all the previous and software drivers installed for the keyboard by following the steps below.  More later, restart the computer and install the latest drivers and software and check if that helps you solve the problem.

    Step 1

    Remove the drivers from the computer. To remove the drivers to follow the steps below:

    a. Click Start and enter the type of search box of start of the press and "appwiz.cpl".

    b. in the programs and features window select the keyboard software installed on the computer and uninstall the drivers.

    Step 2

    During the uninstallation, the device in the Device Manager, make sure that you follow the steps below:

    a. Click Start.

    b. access control panel > system > hardware > Device Manager.

    c. open Device Manager and expand the keyboard device.

    d. right-click on the device keyboard and uninstall the device.

    During the uninstallation of the device in Device Manager, make sure that you place a tick against 'delete the driver for this device '.

    Step 3

    Also, you can try to update the drivers for your keyboard from the Device Manager and check if it helps. Access the link below and follow the steps to update the drivers.

    http://Windows.Microsoft.com/en-us/Windows-Vista/update-a-driver-for-hardware-that-isn ' t-work correctly

    Access the link below to learn more about the error code 38:

    http://support.Microsoft.com/kb/310123

    I hope this helps. Let us know the results.

    Thank you and best regards,

    Srinivas R

    Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • SD card reader problem: "Windows cannot load the driver for this hardware device because a previous instance of the device driver is still in memory. (Code 38) »

    I can't get my Dell Insperion to recognize a second SD card. It will recognize a card inserted in the integrated housing initial, but later maps not be recognized.  If I restart the computer then it will recognize a card again.  I get the following error message "Windows cannot load the driver for this hardware device because a previous instance of the device driver is still in memory. (Code 38) "your help would be appreciated.

    SD memory card

    Device type: hard drives

    Manufacturer: generic

    Location: SDA Standard compatible SD Host Controller

    Error message: Windows cannot load the driver for this hardware device because a previous instance of the device driver is still in memory. (Code 38)

    Driver provider: Microsoft

    Driver date: 2006-06-21

    Driver version: 6.1.7601.17514

    Digital signer: Microsoft Windows

    Driver details

    C:\Windows\System32\drivers\partmgr.sys

    C:\Windows\System32\DRIVERS\sffdisk.sys

    C:\Windows\System32\DRIVERS\sffp_sd.sys

    File version: 6.1.7600.16385 (win7_rtm.090713 - 1255)

    If you try to insert two cards at the same time that would be normal given that the card reader is bound to a single channel of USB. It all depends on how your computer has been configured when it was built.

    If you remove the first card and insert another card it is possible that you are not just right-click on the map in file Explorer and ejecting the card before you remove them.

  • Uninstalled AVG, but the icon is still active in the systray

    I downloaded AVG more their time 24 Tune up.  Computer is very slow so I uninstalled and installed Microsoft Security Essentials

    The AVG icon is still active in my tasbar. have tried ininstall again, but he won't

    My laptop freezes and I can't "Add or remove programs" to see if its still there.  To the down loaded games taking too long to come and freeze for centuries before change of scene and then stop completely. If I can get the Task Manager to show everyone, there are several screens, but I was also reduced to press the off button - wrong I don't know.

    Can anyone help I get desperate!

    Of http://www.avg.com/us-en/utilities

    «AVG Remover»

    AVG Remover eliminates all parts of your installation of AVG on your computer, including the registry items, installation files, user files, etc. AVG Remover is the last option to be used in the case of the AVG uninstall / repair installation process failed several times. »

    Probably you need to download, install and run the 32-bit version of AVG Remover.

    EDIT

  • 10 offer FREE image... Is it still active?

    And if it is still active and I subscribe, then if I decide to cancel before the end of the month I have to pay for a cancellation or any other penalty charges?

    Hi petrosl

    The offer is always available - Royalty free images, pictures and graphics. Adobe Stock

    • Get 10 free images to use in the coming months
    • Your first month will be refunded when you sign up for a year of Adobe Stock (10 images a month plan) to US$ 29.99/month (plus taxes)
    • Risk free cancellation within the first month

    Thank you

    Bev

  • standard design cs4 activation help

    Buongiorno sono Giovanni Greco has come Adobe [email protected] ho da creative suite design standard cs4 che avevo place compratodi installare due sulle postazioni casa ed ufficio!

    Help me please
    [email protected]
    Tel. 3388885607

    Grazie

    Hello, I'm Greek Giovanni account as [email protected] I installed the Adobe creative suite design standard cs4 I bought regularly serial number

    I froze a p.c. I reinstall after format, but I have not had time to disable the product installed how can I do? If you can reset? I want to keep the ability to install on two computers for home and office!

    Help me please
    [email protected]
    Tel. 3,388,885,607

    Thank you

    Contact Adobe support via chat when they are available and ask them to reset your activations (closed weekends)

    To the link below, click on the still need help? the option in the blue box below and choose the option to chat...
    Make sure that you are logged on the Adobe site, having cookies enabled, clearing your cookie cache.  If it fails to connect, try to use another browser.

    Serial number and activation support (non - CC) chat
    https://helpx.Adobe.com/contact.html?step=PHSP-PHXS_downloading-installing-setting-up_lice nsing-activation_stillNeedHelp

  • Mac user. CS4 still active (not disabled) on my macbook pro DIED. Time Machine installed CS4 on my new macbook pro. Error message, "licensing for this product has stopped working". How can I disable my old macbook pro and activ DEAD CS4

    Mac user. CS4 still active (not disabled) on my macbook pro DIED. Time Machine installed CS4 on my new macbook pro. Error message, "licensing for this product has stopped working".

    How can I disable my old macbook DEAD pro CS4 and activate CS4 on my new mackbook pro?

    Hi Christophe,

    Please visit: https://helpx.adobe.com/x-productkb/policy-pricing/activate-deactivate-products.html

    Contact technical support for assistance:

    https://helpx.Adobe.com/in/contact.html?step=CCSN_adobe-ID-signing-in_stillNeedHelp

    I hope this helps.

    Concerning

    Megha Rawat

  • My iphone6s display just broked. How to get a free display Exchange if repairs and Service coverage is still Active?

    My iphone screen just broked. How to get a free display Exchange if repairs and Service coverage is still Active?

    I found a few shops bestbuys and apple around me.

    Thank you very much!

    Jerry

    There is no exchange of free display.  You will pay is the AppleCare + fresh incident (if you bought AC +), or the elimination of guaranteed replacement costs / costs of replacing the screen.  Your best bet would be to visit the Apple store with a genius bar appointment.

    Make a Genius Bar reservation (or cancel an existing reservation)

    http://www.Apple.com/retail/Geniusbar/

    Log in using your Apple ID.

  • menus are gray but still active

    updated thunderbird a few months back. Continuing the problem with greyed out, along the top of the menu and right click etc. They are still active, if you click it, the function works. The menu appears sometimes after a few seconds, sometimes one minute, sometimes never!
    Have you tried to go to continue in safe mode that works but in bulk all the books of customization and address etc.
    Reset toolbars and controls makes no difference. Disable all add them ons also makes no difference.
    Installed add on "disable add the compatibility check" without success.
    Using windows 7

    Try Tools-Options-Advanced and uncheck the box "use hardware acceleration when available. Turn it back on.
    I suggest this because you mentioned that Safe Mode solves the problem, but disabling modules has no effect. Safe mode does both.

    Let me know.

  • I still need help with a thumbnail view in video files Real Player XP sp 3

    I still need help with thumbnail view in video files Real Player XP sp 3-Help! Help! Help!

    You will need to contact the support of Real Player, since the problem occurred with their program.

  • have Silverlight5, but can't seem to delete previous... Help

    I need help, is set up to view DVDs, etc. on my Dell.  Makes sure you have Silverlight5, but can not remove previous, as suggested.  Help!

    Hello

    (1) DVD tell you?

    (2) what player you use to play the DVD?

    (3) what is the exact error code or you receive error message?

    You can try the following method and check if it helps.
    How to clean a facility damaged Silverlight and then reinstall Silverlight:

    http://support.Microsoft.com/kb/2608523/en-us?SD=RSS&SPID=12929

    Registry warning: Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base: http://support.microsoft.com/kb/322756/

  • How to check a timertask calendar is still active or not?

    Hello

    I created the following code:

    class StateTracker extends TimerTask
    {
    Minu private;
            
    public StateTracker()
    {
    Timer = new Timer();
    Timer.Schedule (this, 5000, 150000); begins after 5seconds Repeat task every 150 seconds
    }

    public void run()

    ....

    }

    The code runs allright, unless, in certain circumstances, the task stopped after a few periodic race (I suspect is disconnected network). Y at - there any API I could use to check whether the calendar is still active or not.

    I would like to reschedule the timertask if the original schedule was disrupted.

    timertasks should not be used for the treatment of blocking. I would say to put the actual work load in an own thread.

    as long as the enforcement code is surrounded by exception handling, execution continues. There is no method to check if the timer is running correctly.

  • I have Mac 10.7.5 on Safari, tried to install FlashPlayer a dozen times tried all the troubleshooting suggestions. Moved to about 75% and always says "unable to install. Help, please. Bruce

    I have Mac 10.7.5 on Safari, tried to install FlashPlayer a dozen times tried all the troubleshooting suggestions. Moved to about 75% and always says "unable to install. Help, please. Bruce

    Thanks Maria, I took it to my local MAC store and it took 30 minutes but they solved. Bruce

Maybe you are looking for