Problem with allocating memory collection arraycollection by AddItem

I have a strange problem with the AddItem method.

I made a new item with this code:

------

for (var u: int = 0; u < 41; u ++) {}
Page = new PageToSave();
project.addPage (page as PageToSave);
}

-----

the project is a distance of class projectblueprint:

package marcoDoItBetter.utils
{
Import mx.collections.ArrayCollection;
public class ProjectBlueprint
{
private var _pages:ArrayCollection;

public void addPage(page:PageToSave):void
{
This._pages. AddItem (page);
}

}

}

----

PageToSave is a class that extends the object.

When we create the element using the addPages (so with in the collection _pages arraycollection's addItem) programmatically, we have this result using the term Inspector in debug mode.

It is on the output of the debugger:

pageList = mx.collections.ArrayCollection (@105cf341)
[inherited] =
[0] = marcoDoItBetter.utils.PageToSave (@113cb461)
[1] = marcoDoItBetter.utils.PageToSave (@113cb401)
[2] = marcoDoItBetter.utils.PageToSave (@113cb3a1)
[3] = marcoDoItBetter.utils.PageToSave (@113cb341)
[4] = marcoDoItBetter.utils.PageToSave (@113cb2e1)
[5] = marcoDoItBetter.utils.PageToSave (@113cb281) < -.
[6] = marcoDoItBetter.utils.PageToSave (@113cb221)
[7] = marcoDoItBetter.utils.PageToSave (@113cb1c1)
[8] = marcoDoItBetter.utils.PageToSave (@113cb161)
[9] = marcoDoItBetter.utils.PageToSave (@113cb101)
[10] = marcoDoItBetter.utils.PageToSave (@113cb0a1)
[11] = marcoDoItBetter.utils.PageToSave (@113cb041)
[12] = marcoDoItBetter.utils.PageToSave (@1140dfa1)
[13] = marcoDoItBetter.utils.PageToSave (@1140df41)
[14] = marcoDoItBetter.utils.PageToSave (@1140dee1)
[15] = marcoDoItBetter.utils.PageToSave (@1140de81)
[16] = marcoDoItBetter.utils.PageToSave (@1140de21)
[17] = marcoDoItBetter.utils.PageToSave (@1140ddc1)
[18] = marcoDoItBetter.utils.PageToSave (@1140dd61)
[19] = marcoDoItBetter.utils.PageToSave (@1140dd01)
[20] = marcoDoItBetter.utils.PageToSave (@1140dca1)
[21] = marcoDoItBetter.utils.PageToSave (@1140dc41)
[22] = marcoDoItBetter.utils.PageToSave (@113cb281) < -.
[23] = marcoDoItBetter.utils.PageToSave (@1140db81)
[24] = marcoDoItBetter.utils.PageToSave (@1140db21)
[25] = marcoDoItBetter.utils.PageToSave (@1140dac1)
[26] = marcoDoItBetter.utils.PageToSave (@1140da61)
[27] = marcoDoItBetter.utils.PageToSave (@1140da01)
[28] = marcoDoItBetter.utils.PageToSave (@1140d9a1)
[29] = marcoDoItBetter.utils.PageToSave (@1140 d 941)
[30] = marcoDoItBetter.utils.PageToSave (@1140d8e1)
[31] = marcoDoItBetter.utils.PageToSave (@1140 d 881)
[32] = marcoDoItBetter.utils.PageToSave (@1140 d 821)
[33] = marcoDoItBetter.utils.PageToSave (@1140d7c1)
[34] = marcoDoItBetter.utils.PageToSave (@1140 d 761)
[35] = marcoDoItBetter.utils.PageToSave (@1140 d 701)
[36] = marcoDoItBetter.utils.PageToSave (@1140d6a1)
[37] = marcoDoItBetter.utils.PageToSave (@1140 d 641)
[38] = marcoDoItBetter.utils.PageToSave (@1140 d 221)
[39] = marcoDoItBetter.utils.PageToSave (@1140d5e1)
[40] = marcoDoItBetter.utils.PageToSave (@1140 d 461)
source = Array (@1140c9a9)

as you can see the [5] and the [22] PageToSave id internal flex (or instances of the class has the same address listing.

"I don't know the exact name of it). It happens totally randomly.

sometimes fine, sometimes there's more than a duplicate with random address referencing the game.

I don't want duplicated instances, but I want independent authorities.

I tried to change addItem with

This._pages.addItemAt (page, 0);

Same result.

I also tried pagina = null before the statement new but same result

------

for (var u: int = 0; u < 41; u ++) {}
Page = new PageToSave();
project.addPage (page as PageToSave);

Page = null;
}

-----

is a garbage collector from?

How can we solve this problem?

Thank you

Hello

From the looks of it, looks like a bug.

Are you defining filters or performs a sort on the ArrayCollection collection? Or it's just a pure naked collection instance ArrayCollection.

Have you tried addItemAt() and got the same result?

Mike

Tags: Flex

Similar Questions

  • Satellite 1900-303: problems with expanded memory

    Hello.
    I just bought a PC2100 DDR - RAM 512 MB (my type of notebook memory) chip to upgrade my memory for laptop. I now have 768 MB. Manufacturer of the chip is Kingston, one of the best manufacturers as I've heard. But now, I get some problems. The system "crashes", my definition of the display remains 640 x 480 with 8-bit color and I got an error message saying that there is a problem with the driver ati2dvag.dll.
    I reinstalled windows, with my restore CD, but the problem remains.
    Any idea on this?

    Hey there,

    Could you please download the driver for display on the site and also could you please update the bios as well

    See you soon

  • Problem with CS3 Master Collection

    Hello.

    I have a problem with my Creative Suite 3 Master collection. When I try to install, I get a message saying: Installer database is corrupt. What I can do to install correctly.

    Thank you

    Try to run the Creative Suite cleanup tooland then try to reinstall.

  • Problems with CS6 Master Collection (invalid checksum) disk image

    I have problems to download the trial for CS6 Master Collection for Mac OS X.

    I tried download using the Download Assistant, as a privileged environment and a non privileged user and have also tried direct download as a privileged and unprivileged. Every time that I waited until the download is complete before installation, but every time the disk image opens, denouncing a "invalid checksum".

    I tried to mount the disk image without validating the checksum, but so that I can then run the installer, the installation fails due to the absence of privileges - once again, it comes to regardsless of the privileges of the user. I also tried to delete the preferences and cache for Download Wizard files, but nothing helped.

    Can anyone confirm that the English version of CS6 collection master disk image works and can be installed without error on Mac OS X 10.7? Now, I downloaded and re-downloaded the image disk at least eight times, and while I have a fast Internet connection, it becomes tedious.

    I just downloaded the DMG on Adobe.com, using the test, and it fits very well. I was able to start the installation.

    I don't have a checksum error or other error.

    However, I found these instructions in another thread:http://forums.adobe.com/message/4370247#4370247

    If the download was completed in Adobe Download Assistant, you can temporarily turn off the feature to check the checksum.  The following steps will allow you to temporarily disable this feature:

    1. Open the disk located in Applications/Utilities utility
    2. Go into the menu of disk utility and select Preferences
    3. Deselect the option to verify checksums
    4. Try to mount your DMG file

    I would recommend turn this feature back on however once installation is complete.  Also, if you notice what's happening on the additional files it may indicate a problem with your Internet connection.

    You could try these steps and let us know if you were able to move forward.

  • problem with the memory or hard drive

    I have a problem with my hardware. Whenever I'm playing a video on youtube or another site, that the screen on my laptop becomes blurred and the keys and the mouse becomes inadmissible.  A few seconds later, the screen goes black but you can still hear the audio for a few seconds then the computer. I have a beep and the computer turns off. And I end up having to shut down the computer and re-start all over again.  Well today the blue poped to the top of the screen and said that I had a problem with one of my drives. He said that one of the disks has been blocked in perptial movement. And this problem only happens when I'm watching a video on my laptop. Everything is fine until I have play a video.

    Hello

    1. This occurs when you read online videos?

    I suggest you to follow these steps and check if that helps:

    Method 1:

    Try to update the latest drivers for the graphics card and check if it helps:

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

    Method 2:

    Try running this fixit and see if it helps:

    http://support.Microsoft.com/mats/video_freezes_or_crashes/en-us

    For more information, see this link:

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

    It will be useful.

  • Problem with large memory model

    Hi I am using

    Data Modeler SQL Developer (SDDM) 4.0.0.816 x 64

    and I' have a big problem.

    I have a diagram with about 2800 tables and 4800 Ref constraints.

    In the ER model I keep only Tables indexes and constraints, no views, no triggers, not the Code PL/SQL


    Data saved on the hard disk by SDDM are on 63 Mb i, but when I open the memory taken by the process model is more than 1 GB.


    And impossible use of the model is, and I have 8 GB of Ram under Win 7 x 64 professional


    If it is possible reduce consumption of RAM is possible if ensure that the program only hand when arrive in 1 GB?


    Thank you


    Stefano Giostra


    Hi Stefano,

    and I have 8 GB of Ram under Win 7 x 64 professional

    You can give more memory to Data Modeler - you need to change datamodeler64.conf

    AddVMOption-Xmx768M

    change 768 4000 or value that suits you.

    And of course, you need to use 64 bit JDK.

    In 'save' operation DM also recorded flowchart status (open/close). Maintain the number of chart open at least, avoid keeping the main diagram open because the rendering of the diagram will slow down the loading process.

    And as said Joop you can try to split the model to smaller models.

    Philippe

  • problem with filter smart collection

    Hello

    I know that this question could be covered widely in various forums, but I can't find what I'm looking for.

    The issue I'm having is that I used the quick Collection folder to temporarily store all the photos that I have edited for printing.  All of a sudden all the photos of this quick collection have broken links (! in the upper right corner).  I found these pictures in the real LR folder and they are fine.  How is that possible?

    instead of fixing all the links in the quick collection, I would like to use a smart collection just find all my photos edited in the original folder that has the tact in links.  However, when you filter for "adjusted photos" the smart collection keeps giving me photos with broken links, probably from my quick collection, not those of the foler.  How do I know the smart collection to search only in one folder I want?

    I hope that this logic... I can clarify if necessary.  Thank you!

    Hi, you seem to be confused about the importance of brands of exclamation noticed on the images.

    This means that the catalog as a whole has lost track of these images.

    The most likely reason is that they have been moved to another location by using the operating system or one application other than Lightroom or they are on an external hard drive where the assigned drive letter changed (a Windows problem).

    I do not understand your comment on find them in the "real" LR folder

    Images are not stored in Lightroom, either.

    The catalog contain references to the location of your pictures.

    It is these references that are spread over the images showing the exclamation points.

    If the Smart collection has been implemented correctly then it will want to include all the images that have been published for printing, but the Smart collection is SEO information found in the catalogue and so it will include images of which the catalogue has lost track of--exactly as you found it.

    Tony Jay

  • Strange problem with graphics memory in Satellite Pro 4600

    When I try to open two windows at the same time, the operating system seems to fail. This option is to restart.
    For example: looking for a page on Google, select the page and click on a link to the current page. Displays two screens, but no action is possible.
    Operating system is Win98SE?

    Can someone help me?

    Hello

    I put t believe it s a hardware malfunction, if the problem ONLY occurs with IE Explorer.
    As the above user said, try to install a fresh OS and see if the new installation has resolved the problem.
    Check the operating system for all malware.

  • problem with physical memory

    First of all, I am running vista.  I have 6 GB of ram.  last week when no programs were running. I used 17-20% of the ram for the substantive programmes. Today, it is 38% and more.  I spent the last few hours trying to figure what is running which is Yao memory.  I disabled all the services that the computer won't let me, and he still thinks a lot about 2 GB of ram.  How can I find what works and turn it off.

    Here is a presentation on Windows memory management

    Physical memory is covered in part 2, but you may find it useful to view the entire presentation.

    (Available free from Microsoft) following Sysinternals tools are useful in diagnosing memory problems

    Information on the installation and use of Sysinternals tools are available at http://www.msteched.com/2010/NorthAmerica/WCL314

  • Problem with CPU &amp; memory tracking

    It's my first post in the VMWare community, so I hope I'm in the right place to post.

    One of our servers ESX (4.1) here at my work does not use cpu or memory of itself or any virtual computer running on it.
    I googled this as background as I could, but couldn't find advice about ESX 2 and the files that they proposed to be altered, is not even in ESX 4.1 it would seem.

    Anyone with experience of what can help?


    Thank you very much!

    Concerning

    Robert

    Then I would start first in restarting the server agent.  Service mgmt-vmware restart on /sbin/services.sh restart on ESXi and ESX.

    -KjB

  • Problem with installing master collection CS6.

    Hello

    I tried to install master collection CS6 (with serial number) and I get the following error message: genuine Adobe software verification failure.

    I downloaded the software from the Adobe site and get the number Serenade of a purchase, I was in an apple store on a year ago (my previous macbook broke down so I had to buy a new and re install).

    Thank you

    Daisy

    http://helpx.Adobe.com/Creative-Suite/KB/genuine-verification-failure.html

  • Problem with CS6 Master collection on iMac

    Hello.

    Setup for CS6 Master Collection (Licensing) will not accept the serial number on an iMac

    I run adobe cleaner and erased all Adobe products on the mac.

    I run ONYX and fixed everything that he could set permissions etc. re and HD problems (none)

    The version of the OS is 10.6.8 and latest updates of yesterday.

    The installation and serial No. work very well on all other Mac 19 same configuration

    There is no product Adobe not appearing in applications or utilities

    Connection to the network is fine.

    Any suggestions please?

    Hi sheamusmac ,

    Please see the mentioned kb: http://helpx.adobe.com/creative-suite/kb/error-serial-number-valid-product.html .

    Kind regards

    Romit Sinha

  • Problems with allocation of bandwidth TMS on server TP

    I have questions, get MSDS to schedule a call 6 Mbps to a telepresence server.

    When I create a reservation on the server TP using TMS, I can choose any bandwidth (2560 Kbps, 4096 Kbps, 6144 Kbps etc.).  Regardless of bandwidth, I put the Conference, which is the rate of calls that TP server connects with, EXCEPT 6144 Kbps.  Whenever I put it to 6144 Kbps, the rate of appeal dates back to 1920 Kbps.

    If I dial a number from the server TP itself, everything connects to 6 Mbps OK (even with dial back in).

    Looking at the history of calls on the CV, the server TP requests only 1920 Kbps when off numbering of a TMS to the meeting request is set to 6144 Kbps.

    All bandwidth restrictions have been removed from the VCS, the end points of support 6 Mbps (as evidenced by the Ad - Hoc numbering work OK in each direction).  It seems that the TMS set the bandwidth of conference of 1920 Kbps (or, failing to set a bandwidth of conference at all) despite set to 6144 Kbps.

    VCS: 7.2

    TP server: 3.0 (2.24)

    TMS: 13.2

    Any help appreciated

    Hello

    It is CSCud72945, fixed the TMS 14.2.

    Kind regards

    Kjetil

  • Problems with updating Image Collection

    We have a collection of already published we would like to change the image of the collection to. We are able to change the image in the Images Collection Properties tab, but after we clicked done, change does not stick. For what it's worth, we also tried to edit an image for an original collection of more... same thing happens.

    Any suggestions?

    Yes. That's what you need to do.  I'll provide more information as soon as I talk to the team of dev on the bug.

  • Problem with catalyst 12.8 working set memory?

    I run a system Win7 Ultimate x 64 with dual ATI HD5870s inside. After update Catalyst 12.8 today, I noticed a problem with the memory what work has been used by Firefox 14.0.1.

    IS REPRO STEPS
    (1) run Firefox
    (2) open Taskman, sort of working set
    3) http://www.kotaku.com
    (4) use mousewheel to scroll the pane to the right down - load the additional articles for review.

    If you scroll down a bit, you should see Firefox eat a few GB of working set memory in short order. The page starts answers incorrectly at the time and Firefox becomes unstable.

    Note: This problem only repros when Crossfire is enabled. Crossfire is off, there is no problem at all.

    I don't know if it's a v Crossfire Firefox thing, or something new, sent by 12.8 catalyst... but whatever it is, keep your eyes open. I don't have a way to solve this problem yet apart from the stop of Crossfire, which denies the reason why I went with a double solution map in the first place.

    Deactivation of Firefox > Options > advanced > General > browsing > use hardware acceleration when available solves the problem until Mozilla and AMD solve this problem

Maybe you are looking for