Collection of garbage and ListField Performance

Hello

I created an application that has a custom KeywordFilterField. This component is simply a custom listechamps that has the ability to KeywordFilterField.

I am in the phase of testing my application now. I don't know how (im using 5.0) Blackberry handles objects.

1. all objects created by my application receive garbage-collected when the application is closed?

2. the listfield scrolls very slowly after that I started and closed the app for a couple of times.

I think that whenever the application closes, objects created during execution are still causing the slowdown of my Listfield. Any advice out there?

Thank you

Mark

BTW, after reset a device (battery pull), the listfield scrolling performance is back to normal.

Not sure how much it will help.  The close call AAFAIK only works for screen and does because when the screen detects that you close the last screen on the display stack, it will assign a System.exit (0).

I would recommend that you have an exit in your menu that directly call System, exit (0) and try this to see if it solves the problem.

Regarding your previous post, Persistentstore can leak, just generally harder to do because objects must be Persistable.  That said, you can also cause problems for the PersistentStore if you have very large objects which you change or you do not commit.

I see you found this: 'every line contains a custom layout manager that positions the textfields on the inside.'.  Page layout can certainly cause sluggish performance.

Tags: BlackBerry Developers

Similar Questions

  • _ "Boot Performance Monitoring" and "stop Performance Monitoring. __

    I just looked to the top of the page "Event Viewer" and discovered 1 791 itemsmarked as 'endangered', 'Critical', 'Error', etc, etc, etc.!
    They seem to be linked to "Boot Performance Monitoring" and "Stop Performance Monitoring", etc., etc., etc..!
    How can I fix all of these issues, please?
    I have a little trouble with my home computer private.
    Whenever I turn on my PC, it takes a long time to start (is that what you call "Booting"?).
    Also, when I want to turn my PC off, it takes a long time to close.
    I tried a few computer maintenance such as: -.
    CLEANING DISC,
    THE FRAGMENTATION OF THE DISK,
    etc.,.
    but they have not alleviated the problems at all.
    Can someone help me with this please?
    Any assistance, information, suggestions, etc. would be greatly appreciated.
    Thanks !

    Alan Merrington
    E-mail address is removed from the privacy *.

    Hello

    Normally how long will it take to start a power off of the State? How long does take for
    Stop for a shutdown of the State?

    Use this simple free utility to read these events and it makes it easier to paste them into one
    message here. Do these after the SFC and CheckDisk as below.

    MyEventViewer - free - a simple alternative in the standard Windows Event Viewer.
    TIP - Options - Advanced filter allows you to see a period of time instead of the whole of the record-
    Set it for a bit before and after the time of the BSOD.
    http://www.NirSoft.NET/utils/my_event_viewer.html

    ==========================================================

    Follow these steps to remove corruption and missing/damaged file system repair or replacement.

    Run DiskCleanup - start - all programs - Accessories - System Tools - Disk Cleanup

    Start - type in the search box - find command top - RIGHT CLICK – RUN AS ADMIN

    sfc/scannow

    How to analyze the log file entries that the Microsoft Windows Resource Checker (SFC.exe) program
    generates in Windows Vista cbs.log
    http://support.Microsoft.com/kb/928228

    Then, run checkdisk - schedule it to run at next boot, then apply OK your way out, then restart.

    How to run the check disk at startup in Vista
    http://www.Vistax64.com/tutorials/67612-check-disk-Chkdsk.html

    ==========================================================

    Keep these practice to check possible error messages if they return.

    Check out these utilities to see if information may be collected:

    It is an excellent tool for displaying the blue screen error information

    -Free - BlueScreenView scans all your minidump files created during "blue screen of death," collisions
    and displays information about all accidents of a table.
    http://www.NirSoft.NET/utils/blue_screen_view.html

    -------------

    MyEventViewer can be verified at the time of the blue screen (BSOD) within a second or so of the
    time of the BSOD to provide more information about the possible cause - see TIP)

    MyEventViewer - free - a simple alternative in the standard Windows Event Viewer.
    TIP - Options - Advanced filter allows you to see a period of time instead of the whole of the record-
    Set it for a bit before and after the time of the BSOD.
    http://www.NirSoft.NET/utils/my_event_viewer.html

    ------------

    AppCrashView - free - a small utility for Windows Vista and Windows 7 that displays the details of all the
    application goes down has occurred in your system. The information breaks down is extracted from the .wer
    the files created by the Windows Error Reporting (WER) of the operating system component of each
    time that an accident has occurred. AppCrashView also allows you to easily record the list of accidents to
    text/html/csv/xml file.
    http://www.NirSoft.NET/utils/app_crash_view.html

    I hope this helps.

    Rob Brown - MS MVP - Windows Desktop Experience: Bike - Mark Twain said it right.

  • Very bad audio and video performance

    I have a Pavilion dm1 laptop running Windows 7.  When I got all first the machine audio and video performance was very good.  However, towards the end of last year the performance for audio and video has become extremely slow.  Still, the sound stutters even without video.

    I used the tools to clean the registry, updated (or verified) all drivers I can think, but nothing has not improved.

    Maybe related, but less to worry about because it is necessary that in rare occasions, boot has become very slow too.

    I think I have tracked down a part of the problem by chance.

    Normally, I start my DM1 when connected to various devices of office as keyboards etc.  These are all plugged into the USB ports.  As the boot begins there very long delays in the process.  And when the boot ends stuttering audio and video as described.  However, if no USB device is attached during the boot process, start happening quickly and the audio/video all work fine.

  • Relationship between the list and ListField...

    Hey people of Java...

    I can't thank you enough for your answers because I'm really starting to "grok" the paradigm of Java.

    Another came today I'm having problems understanding I deconstruct this app MemoryDemo...

    In the screen of the demo is these two lines:

    Get and display the list of customers.
    _customerList = CustomerList.getInstance ();
    _customerListField = new MyListField (_customerList.getNumCustomerRecords ());

    Well, now I understand the first line perfectly. She develops an object with the contents of the customers it contains.

    The second line calls a custom ListField routine that I show below:

    the final private class MyListField extends ListField
    {
    public MyListField (int numEntries)
    {
    Super (numEntries);
    }

    }

    Here is the part that I don't understand:

    It seems to appeal to both the MyListField() and the super() is simply the NUMBER of elements required, but not * that * list to use.  Exactly how is MyListField() or super() knows how to use the list of customers?  I ask because this exact routine is used a few lines more later (in the part of the main screen) to do the same thing for a list of the records of the order - even once without any reference to which list to use.

    It doesn't seem to be an explicit connection or the relationship between the _customerList and ListField is building.  Is somehow deconstruct '_customerList.getNumCustomerRecords ()' to its root and use _customerList somehow?  I don't think that I changed the call to this:

    _customerListField = new MyListField (_customerList.getNumCustomerRecords ());
    _customerListField = new MyListField (PICK_A_NUMBER);

    Where the constant is: public private static final int PICK_A_NUMBER = 50;

    And he ALWAYS displays a list of customers (though now with only 50 files).  How to do know?

    Thanks in advance!

    -John

    "I guess that somewhere in the interior architecture of the ListField, he knows that he has to paint the whole - one at a time - when put on the screen - that's it."

    Fix.

    This is the great thing about ListField.  It attracts only those who are on the screen.  If you use ListField draw a list of 10,000 rows (I tested), and it will only extract and draw the 10 that he needs.

    "Again, I don't find any explicit loop where it is through each element and then calling drawListRow()."

    Good yet once, it is not there.

    "Maybe one day I'll be able to pay it back here."

    It would be great.

  • Can we make several Off features in a collection of panels and how the query-off based on the example?

    Mr President.

    Can we make several Off features in a collection of panels and how the query-off based on the example?

    Concerning

    Once again, no jdev version?

    It must be really hard to remember ehich version you are working.

    Would have given a quick glance in the docs

    featuresOff java.util.Set Yes a list separated by spaces of the features by default to disable to the panelCollection. Values supported are

    That is the answer to a message.

    The second answer is that qbe is filtering tables. If you fund the table without filter you have not the qbe.

    Timo

  • Smart Collections using 'Source' and 'Collection '.

    I'm a little confused about this subject.  I want to create a smart collection within a set of sets in the collection.

    Example:

    The TRIPS agreement is a set of collection

    Under the TRIPS Agreement, you have RV

    Under the RV, you have "ButterField Ranch may 2016.

    Under "ButterField Ranch 2016 may" you "All".

    Then under "ButterField Ranch 2016 may" want to create a smart collection that includes only the "color of the label" green collection "All".

    The question is, how - you reference the 'all' within all the other collections without getting all other collections 'All' somewhere else.

    What the question is: How do bosses really work for 'Source'-> 'Collection '.

    The question is, how - you reference the 'all' within all the other collections without getting all other collections 'All' somewhere else.

    You can not.  Smart collection criteria allow you to match the names of the folders, collections, published reports and publish the service (for example, "Flickr").  There's no way to match the name of a collection defined in smart collections (or filters, incidentally).   Others have asked for this feature - please add your vote and detailed opinion, why you want this feature request service in the official Adobe feedback forum: Lightroom: Smart collections lack of criterion for "Collection Set | Community customer Photoshop family .

    To match the names of the sets in the collection, you can use the plugin to any filter.

  • I want to uninstall the application, because it does not stay charged and want more on my computer and not perform the steps for removing it, but none does not work for me.

    I want to uninstall the application, because it does not stay charged and want more on my computer and not perform the steps for removing it, but none does not work for me.

    Cancel see answer #1 in https://forums.adobe.com/thread/2023066 - includes a link to Chat from Monday to Friday

    Sign out of your account... Uninstall... to run vacuuming...

    -http://helpx.adobe.com/creative-cloud/help/install-apps.html (and uninstall)

    -https://helpx.adobe.com/creative-suite/kb/cs5-cleaner-tool-installation-problems.html

  • I purchased the CS4 master collection for windows and I change my computer on a Mac. How to upgrade my license?

    I purchased the CS4 master collection for windows and I change my computer on a Mac. How to upgrade my license?

    There is no option to update your CS4 license except subscribe to specially of the first creative cloud plan cuts the year for owners of CS (Adobe: creative, marketing, and document management solutions).

    Platform swaps are allowed only for the most recent released CS software (CS6).  You can get a version license Mac to CS4 by Adobe since Adobe doesn't sell older versions, and the only version of CS for sale is CS6...  CS4 is not eligible to get CS6 at an upgrade price.

    You can buy CS6 via the following page: http://www.adobe.com/products/catalog/cs6._sl_id-contentfilter_sl_catalog_sl_software_sl_c reativesuite6.htm

  • I have PS CC. If I download PS CS3, to be able to use an older filter, it will mess up my CC and the performance parameters?

    I have PS CC. If I download PS CS3, to be able to use an older filter, it will mess up my CC and the performance parameters?

    Hi Digitalartist,

    This will not affect performance, but it can change the default value of Photoshop CS3.

    In bridge for file associations, you can check if the extensions such as JPEG, PSD etc files have Photoshop selected CC.

    Also check the program by default for images if you directly open images with Photoshop.

    Thank you

  • BPEL and ESB performance

    Hello

    Can someone tell me how to make performance in BPEL and ESB.

    How to create WEB SERVICES in BPEL

    Hi '.

    BPEL and ESB performance.

    It's very big topic I can give you 2 points here

    In BPEL, we must avoid the use of a double variable, is the best way to do this, whenever we create a new variable
    We ask can reuse us adjustable from inside the process, example creating the variable output in activity Invoke
    We must see if we can use an existing variable instead of creating new ones.

    All the associated DB operation must be performed in single composite 1.

    How to create WEB SERVICES in BPEL

    Don't know what you want to ask here, such as BPEL itself is a Web service.

    Yatan-

  • MView newspapers and database performance tables

    Hello

    I want to ask you if the creation of a newspaper of materialized on a base table view would influence the Insert and Update performance on the base table? Or is the negligible load? Or y at - it no effect at all?

    Help, please!

    Hello

    If you want to create Materialized View Log, is usually because you were planning to implement FAST REFRESH mode for materialized views.

    As sb92075 says there is no free lunch.

    But, you should compare the cost of some insert/delete on the materialized view log , and the cost of a COMPLETE REFRESH from your point of view, materialized.

    If the Base Table must periodically be recharged with millions of rows and then, FAST REFRESH and Materialized View Log mode is not the right solution.

    Hope this helps.
    Best regards
    Jean Valentine

  • Collect the fonts and images in Illustrator

    Hello

    In addition to using a plugin or software to collect the fonts and images, is it possible to carry out this action in Illustrator. Perhaps, even showing the path or the location of the fonts/images is easily accessible.

    Sutagami

    Given that I cannot even keep that part on the external link images vs straight embedded images, the chances of a mode of work to collect assets are thin... I agree, however, that these days, just send a PDF file is the surest and most send the files, so why not try it?

    Mylenium

  • Need help with debugging collection in bulk and loop forall

    Hi people,

    I was wondering if someone can look at my PL/SQL code and tell me where I'm wrong.

    Environment
    =========
    10g (Rel 2)

    Algorithm of
    =======

    A slider lets collect records
    The data block
    Bulk insert the data into a table

    Implementation
    ==========

    Set serveroutput on;

    declare

    cursor source_cur is
    Select * from
    from t1;

    -Define the variables and collection types to be used by the BULK COLLECT clause

    source_data_type type is the table of the source_cur % rowtype;

    source_data_table source_data_type;

    Start

    Open source_cur;
    loop
    extraction source_cur
    bulk collect into source_data_table;

    When the output source_data_table.count = 0;

    -Now, we print the data collected
    -for i in source_data_table.first... source_data_table. Last
    -loop
    -dbms_output.put_line (' company name: ' | source_data_table (i).) Company);
    -dbms_output.put_line ('Count: ' | source_data_table.) (COUNT);
    -end loop;
    end loop;
    close source_cur;


    Note: The statements above Print print the correct data and County

    -Now, bulk insert us the data into the target table

    dbms_output.put_line ('Count: ' | source_data_table.) (COUNT);

    Note: The print statement above indicates a number 0 =. Since there is no available record, FORALL loop below will not insert anything in the table

    ForAll idx in source_data_table. FIRST... source_data_table. LAST
    Insert into T2
    source_data_table (idx) values;
    end;
    /


    Thanks in advance

    rogers42

    You'll want to do something like this

    open source_cur;
    loop
    fetch source_cur
    bulk collect into source_data_table;
    
    exit when source_data_table.count = 0;
    
    forall idx in source_data_table.FIRST .. source_data_table.LAST
    insert into T2
    values source_data_table(idx);
    end loop;
    close source_cur;
    

    or even better:

    insert into target
    select col, col, col
      from source
    

    no need to COLLECT in BULK and FORALL
    ;)

  • How to prepare list for garbage collection after drag and drop operation

    Hi all

    I have a view in a mobile application that contains a list with the help of drag / move. The problem I encounter is that the NativeDragManagerImpl maintains a reference to this list in its _dragInitiator and _relatedObject properties. It is not a memory leak by - say, because the reference will be replaced the next time make drag and drop is used, however, my view that preclude any garbage collection, causing an unacceptable peak memory.

    Here is an example which illustrates the problem (app default AIR using Flex 4.5.1):

    Main.MXML

    <?xml version="1.0" encoding="utf-8"?>
    <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:local="*"
                                                         xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:s="library://ns.adobe.com/flex/spark" width="800"
                                                         height="600">
    
    
              <fx:Script>
                        <![CDATA[
                                  protected function start_clickHandler(event:MouseEvent):void
                                  {
                                            var element:ListGroup = new ListGroup();
                                            this.panel.addElement(element);
                                  }
    
                                  protected function stop_clickHandler(event:MouseEvent):void
                                  {
                                            this.panel.removeAllElements();
                                  }
                        ]]>
              </fx:Script>
    
    
              <s:Panel id="panel" top="100" left="100" bottom="100" right="100" title="Drag Drop Test">
                        <s:controlBarContent>
                                  <s:Button label="Start" click="start_clickHandler(event)" />
                                  <s:Button label="Clear" click="stop_clickHandler(event)" />
                        </s:controlBarContent>
              </s:Panel>
    
    
    </s:WindowedApplication>
    
    

    ListGroup.mxml

    <?xml version="1.0" encoding="utf-8"?>
    <s:Group xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx"
                         xmlns:s="library://ns.adobe.com/flex/spark" width="100%" height="100%">
              <s:layout>
                        <s:HorizontalLayout />
              </s:layout>
              <s:List id="sourceList" width="100%" height="100%" dragEnabled="true" dragMoveEnabled="true" dropEnabled="true">
                        <s:dataProvider>
                                  <s:ArrayCollection>
                                            <fx:String>Item 1</fx:String>
                                            <fx:String>Item 2</fx:String>
                                            <fx:String>Item 3</fx:String>
                                            <fx:String>Item 4</fx:String>
                                  </s:ArrayCollection>
                        </s:dataProvider>
              </s:List>
              <s:List id="targetList" width="100%" height="100%" dragEnabled="true" dragMoveEnabled="true" dropEnabled="true">
              </s:List>
    </s:Group>
    
    

    If you drag items to the list on the right, there is always at least one instance of ListGroup stuck in memory for the duration of execution (as seen in the profiler).

    Is there a way to perform cleanup on the DragManager (or in fact the underlying DragManagerImpl) upward to a time of my choosing? Thoughts or ideas will be greatly appreciated!

    Thanks a lot for your time!

    I think I'd be monkey-patch NativeDragManagerImpl.  And create a bug report.

  • Garbage Collection, external swf and XML

    I did tons of research on the AS3 garbage collection. I have a decent knowledge of it, but I CAN'T find any info about the deletion of xml data. The worst thing is, I have no control over the version of the file (AS2 or AS3) swf file I'm loading. Unfortunately, I'm loading AS2 swf (with an outside provider that will not show you any code) in a film of AS3. When I run garbage collection, the data from the xml file / is not deleted and I can't understand how get rid of it. The problem is, once a file is loaded which calls an xml file, no other files cannot load an xml.

    If anyone knows how to clear the XML, please fill me in.

    Thank you!

    Heather

    The code is:

    **************UPDATE*************************************

    Hey people,

    Good news. I just read an announcement of Grant Skinner regarding what my problems were.

    For more details, go to his blog @ http://www.gskinner.com/blog/archives/2008/07/unloadandstop_i.html

    Be sure to read the update as well.

    See you soon,.

    Heather

Maybe you are looking for

  • Contacts, filled with e-mail senders

    Hi, I have a friend on a Mac (ElCapitan).  His contacts is filled with the addresses of e-mail senders.  Anyone know why this is happening?  She uses AOL in the post office on the Mac.  How she keeps these addresses to be automatically filled in his

  • Deleted my cache sites failed...

    I was playing a game that has kept to ruin (roblox), and I tried to delete my cache manually. Now, the site will not properly function, and I also found some other sites that fail now. I checked my firewall, but nothing is blocked from these sites...

  • Button / stop does not not how to start my mobile

    Hello I have the Motorola Milestone A853. I use the GSM of Auntie DOCOMO network. This is the second time I had a problem with the power/unlock button. (Last time I replaced him in the warranty is always there until December) Last night my phone batt

  • 251 - a123wb Office with22uh MB: sound issues

    Just got this system 2 days ago. Apparently there is no sound associated with this monitor.  I'll have to buy speakers? I did have a system of office for many years. Where would I plug in speakers? I looked at the back of the monitor. Don't see any t

  • Windows update fails with 80070020

    I run windows update on Vista, and it is a failure with "WindowsUpdate_80070020" "WindowsUpdate_dt000" , and of course, when I click on 'get help for this error', I get no results (as always). Can someone please find what the error code means and tel