"No pool in place - just leaking" Error slowing down MacPro

Whenever I am running the creative cloud app. I am getting this error message in my console:
Creative Cloud[4627]: objc[4627]: Object 0x792c53f0 of class __NSCFData autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug
It comes up every half a second, and is slowing down my computer...
please help! I was on the phone with tech support for over an hour, and no  help at all.
Thanks,
Leah

HI,
autoreleased with no pool in place - just leaking
Do you have an iPhone?
http://www.iphonedevsdk.com/forum/iphone-sdk-development/20720-autoreleased-no-p ool-place.html
I have the same messages in Console also. I don't think it's anything to be concerned about. It's just programming language.
Carolyn

Similar Messages

  • NSConcreteMapTableValueEnumerator autoreleased with no pool in place - just

    When I run my Java app within JBoss I get the following console errors:
    * _NSAutoreleaseNoPool(): Object 0x2a826aa00 of class NSConcreteMapTableValueEnumerator autoreleased with no pool in place - just leaking
    It does not keep my app from running and everything seems to work. I have searched my code and there are no references to NSConcreteMapTableValueEnumerator or _NSAutoreleaseNoPool. Where is this message coming from? How do I get rid of it?

    It's coming from the process (Sender/PID) which you've failed to include in your post.

  • InDesign slowing down (MacPro)

    Hello. In some events, InDesign (6.0.2) slows down when working with text. This happens with various typefaces (e.g. Adobe Pro fonts), on single or few pages, a couple of styles, some text wrap, justified text, nothing fancy, no line art, very few images, typical display performance, newly installed 10.5.7, all other apps running smoothly with the 3G ram I have. Slow means: I try highlight one word by double clicking it with the type tool. Application beachballs me for 25 secs. Then I go cmd-. (increase point size), or opt-cmd-right arrow, beachball 45 secs. Etc.
    This is not exactly repeatable. Restarting the app doesn't necessarily help. Any ideas? Specific tests?
    Thanks a lot.

    Dear Peter,
    just to catch you up on this problem. I did speak to an Adobe person, and his opinion was that the slowdown was related to a corruption in the document file, and not InDesign.
    I'm also sorry to say that the Adobe tech support person couldn't understand my statement that it could have been a corrupted master page.
    He asked me to quit InDesign. He also had me throw away (from Hard Drive—Library—Application Support—Adobe—SING—Mark II, a folder called "datastore") the "datastore" folder, which regenerated itself when I relaunched InDesign.
    I went into my document and changed the master pages for the problematic articles (this was a journal), and all seems to be working ok. It seemed to be a corrupted master page, a problem I've actually had before, but I don't know how that happens. I just lacked the energy to try to get him to understand the master page corruption problem.
    Thanks for your help.
    detta

  • Error: _NSAutoreleaseNoPool() __NSCFDate autoreleased with no pool in place

    _NSAutoreleaseNoPool(): Object 0x407c40 of class __NSCFDate autoreleased with no pool in place - just leaking
    Stack: (0x92284cdf 0x92191562 0x203a)
    anyone seen this before? how do i fix it? Thanks : )

    Are you creating a new thread?
    If so, then the first thing you need to do at the start of the thread is allocate an autorelease pool. Check out the threading guide for examples.

  • Objc[250]: Object 0x15e509ce0 of class NSRunningApplication autoreleased with no pool in place

    Hi there,
    After Effects is running extremly slow. I can't really work..
    The Console on Mac gives following information:
    objc[250]: Object 0x15e509ce0 of class NSRunningApplication autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug
    Any idea how I could solve this problem? I'm desperate...
    Thanks for helping!
    I'm using After Effects CS6 on the following Mac Pro:
    processor  2 x 2.93 GHz 6-Core Intel Xeon
    memory  12 GB 1333 MHz DDR3 ECC
    graphics  ATI Radeon HD 5870 1024 MB
    software  OS X 10.8.5 (12F37)

    What version of After Effects? Include the minor version number (e.g., After Effects CS5.5 with the 10.5.1 update). Don't just say "After Effects with the latest updates"; give the specific version number.
    After Effects CS6 / Version 11.0.2.11
    Have you installed the recent updates? (If not, you should. They fix a lot of problems.)
    Yes
    What operating system? This should include specific minor version numbers, like "Mac OSX v10.6.8"---not just "Mac".
    Mac OS X 10.8.5
    Tell us about your computer hardware. Include CPU type and number of processor cores, amount of RAM installed, GPU, number of disk drives, and how any external drives are connected.
    CPU:
    2 x 2.93 GHz 6-Core Intel Xeon
    RAM:
    12 GB 1333 MHz DDR3 ECC
    disk drives:
    - 250 GB Solid-State SATA (-> Operating System)
    - 1 TB SATA (-> data)
    - 2 TB SATA (-> data)
    - 1 external X-SAN-drive connected via fibre channel (-> projects)
    What versions of drivers for your graphics hardware do you have installed (including CUDA driver and driver for display adapter)?
    ati radeon hd 5870 (driver built in OS)
    Do you have any third-party I/O hardware (e.g., AJA, Matrox, Blackmagic, MOTU)?
    AJA Kona 3G (updated 05/01/2013)
    What kind(s) of source footage? When telling about your source footage, tell us about the codecs, not just the container types. For example, "H.264 in a .mov container", not just "QuickTime".
    All kinds of, but very often: Quicktime DVC Pro HD 1080i50
    If you are getting error message(s), what is the full text of the error message(s)?
    following error message in macs console:
    objc[615]: Object 0x119a59360 of class NSRunningApplication autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug
    the numbers (object) are changing
    What were you doing when the problem occurred?
    I really don’t now. After Effects has always been working very well. I did update the driver for AJA Kona 3G. Maybe that’s the problem..
    Has this ever worked before? If this worked before by doesn't work now, what has changed on your computer in the intervening time?
    Yes, it worked! Like I said, the AJA update.
    Do you have QuickTime installed. (You should.) If so, what version? The answer should be specific, such as "QuickTime 7.6.2".
    Yes
    QuickTime Version 10.2 (603.17)
    What other software are you running?
    Adobe’s Production Premium CS6 + InDesign CS6, Maxon Cinema 4D, Microsoft Office
    It doesn’t seem to make a difference which app is running at the moment.
    Do you have any third-party effects or codecs installed?
    AE-Plugins: Trapcode Suite, Twitch, Optical Flares
    All worked very well!
    Are you using OpenGL features in After Effects?
    Yes, with adaptive resolution
    Does the problem only happen with your final output, RAM preview, or both?
    1. MAIN ISSUE: During compositing After Effects reacts really slow. After a mouse click, it takes a few seconds.
    2. I can’t render out anymore. See the attached error messages (german).
    Are you using Render Multiple Frames Simultaneously multiprocessing?
    No
    If the problem is with output, give your exact output settings (both render setting and output module settings). Screenshots help.
    Quicktime DVC Pro HD 1080i50 (uncompressed audio)
    Other codecs seem to work.
    What is the exact sequence of steps that you are taking?
    1. No specific. Just trying to work. It’s no specific project, with no specific footage.
    2. just render the codec mentioned above.

  • Creative Cloud for Mac (latest version) has a "leak" error

    The latest download of the Mac Creative Cloud app has a bug.  After receiving the latest CC (today) my system console continues to inform me of a "leak error" at the rate of abot four per minute.  For example: "10/6/14 5:18:09.479 PM com.adobe.AdobeCreativeCloud: objc[190]: Object 0x699153a0 of class __NSCFData autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug"
    Any ideas on a fix?
    Thanks,
    Jim

    Hi Jim,
    Kindly collect the logs using the below mentioned link and send it over to the email address mentioned in Private Message so that we can try to help you appropriately.
    Log collector: Log Collector Tool
    Thanks,
    Atul Saini

  • NSAutoreleaseNoPool(): Object  of class UIView - just leaking

    Hi,
         I didn't work on Threads. I am getting the below console warning. I am using two buttons which are calling two different methods. When i performed any one of that action, i am getting this console warning. I don't know why it is coming like this. if we do button action 100 times, it comes 100 times. How can i solve this. If i remove the Threads in the actions, then it works fine and shows nothing in the console. Can any one help me please.
    NSAutoreleaseNoPool(): Object 0x4cc0e80 of class UIView autoreleased with no pool in place - just leaking
    Thanks

    Changed it from "query" to "path", and got an array.

  • Just leaking in the console.log

    I'm using iTunes 6.0.3.
    Yesterday, I downloaded a video from the Music Store and watched it without a problem. About 2 hours later, I got a flood of messages like this in the console.log:
    2006-02-21 19:59:14.121 iTunes[2483] * _NSAutoreleaseNoPool(): Object 0x76c1b80 of class NSCFString autoreleased with no pool in place - just leaking
    2006-02-21 19:59:14.121 iTunes[2483] * _NSAutoreleaseNoPool(): Object 0x76c1ba0 of class NSCFString autoreleased with no pool in place - just leaking
    At the time, iTunes was running in the background, but not playing anything. The messages stopped and after another 2 hours came another flood.
    This morning. I saw what was in the console.log. clicked on iTunes, and immediately got another blast. It went on for about 5 minutes. There was over 12,000 lines of this stuff.
    Anyone have any ideas about this?

    try upgrading to at least 10.4.4 of mac OS as there may be an issue with 6.0.3 running on 10.3.9...that might fix it

  • My Macbook Pro is 18months old and has recently slowed down. specifically it wont load photos on Autotrader any suggestions?

    My MacBook Pro is 18 months old and has just started to slow down. It is also not loadng certain photos from the autotrader website if this is relevant?

    You may be able to improve the speed with some software work but it could also be your disk or SSD is corrupt or failing.
    Try an SMC Reset:
    http://support.apple.com/kb/HT3964
    Is it faster now?  If not, proceed.
    Backup your data immediately:
    Before proceeding you should make sure you have a current backup.  If it has been getting slower over time your disk could be a failing slowly.  SATA drives have two retry modes: short and long.  They can continue operating as read errors are increasing.  The long retry cycle is very long and can cause significant performance degradation.  If it has started long retries then it is likely to get worse and eventually fail.  SSDs also have a failure mode where the fail slowly.
    Time Machine Basics: http://support.apple.com/kb/ht1427
    Most commonly used backup methods: 
    https://discussions.apple.com/docs/DOC-3045
    Methodology to protect your data.  Backups vs. Archives.  Long-term data protection:
    https://discussions.apple.com/docs/DOC-6031
    Try the remedies at http://www.macworld.com/article/2026650/mac-troubleshooting-what-to-do-when-your -computer-is-too-slow.html
    and
    Mac Performance Guide: http://www.thesafemac.com/mpg/
    Safe Mode:
    - Reboot the system in Safe Boot mode.
    - Power on the Mac and when you hear the bong, hold down the shift key until it is booted.
    - Be patient, this will take some time while it checks the filesystem.
      If it runs faster in Safe Boot mode then it is probably third-party software compatibility issues.
    - Restart.
    - Does it run faster after the restart?
    Spotlight:  If Spotlight is continually running, re-index Spotlight:
      http://support.apple.com/kb/ht2409
    Runaway processes:
    Launch Activity Monitor (in the Applications/Utilities folder).
    Click on the CPU heading.
    Are there a process taking up a large percentage of the time?
    If so select it and click on the upper left hand X to force quit the process.
    Run Disk Utility (found in the Applications folder):
    -In Disk Utility look at the S.M.A.R.T. Status. 
    If it says the disk has a hardware problem that can't be repaired then stop.
      Your system could be in danger of failing at any time and you need to replace the disk soon.
      Back your system up twice.
      (You will need a second external disk for the second backup.)
      Consider using Carbon Copy Cloner or Super Duper! for the second backup to clone the disk.
      Jump to the Hardware replacement section and seek expert help.
    Repair Disk Permissions and Verify Disk.  If Disk Permissions reports errors, don’t worry.  That is normal.  If Verify Disk reports errors then they need to be repaired.  Otherwise skip to the reinstall OS X section.
    Repairing your system disk:
    - Boot in recovery mode.
      (Boot and when you hear the bong hold down the
      Command and R keys simultaneously until you see the recovery screen.)
    - Select disk utility.
    - Select your system drive.
    - Repair Disk.
    - Did it complete without errors? 
      If not you may need a new disk or SSD.  Seek expert help.
      If it completed normally then reboot.
    -Did it boot faster and is it more responsive?
    Reinstall OS X:
    If it is still slow you should reinstall OS X.
    - Boot in Recovery Mode again.
    - Follow the instructions to reinstall OS X.
    - Now does it boot and run faster?
    Hardware replacement or upgrade?
    Hopefully by now your Mac is back to its normal speed.  If a hardware repair is indicated take it to an Genius bar at an Apple store for a free diagnosis and estimate of repairs.  If it is under warranty or AppleCare they will repair it for free.  If not, you can compare their estimate with DIY repairs.
    Genius reservation http://www.apple.com/retail/geniusbar/ .
    or find an Apple Authorized Service Provider https://locate.apple.com/country
    You can speed it up further by upgrading some hardware.  For the following memory, disk or SSD replacements and upgrades check out OWC http://eshop.macsales.com/, Crucial: http://www.crucial.com/ and Kingston http://www.kingston.com/us/.  You will need to know your Mac the year and season your Mac was first sold and model number which can be found here:
     > About This Mac > More Info… > System Report > Model Identifier:
    If your Mac has 2 or 4 GB of RAM, consider an upgrade to 8 GB (if the memory is upgradeable).  An 8 GB memory upgrade is only $100.  When I upgraded a MacBook from 2 GB o 8 GB it booted thee times faster.
    If your Mac has a disk and it won’t repair properly, is low on disk space, or you just want a considerably faster disk, check out an upgrade to an SSD-Hybrid disk. Google "Seagate 1TB Solid State Hybrid Drive SATA 6Gbps 64MB Cache 2.5-Inch" or consider an SSD (120 to 480 GB).
    OWC has SSD replacements and upgrades for MacBook Airs and Retina MacBook Pros.
    Good luck.  May the software fixes do the trick.

  • IPhone 4s cover flow slow down and jerky help

    Hi all
    i have copied my music over from my backup 3GS to iPhone 4s but in cover flow it is very very jerky and not as smooth at all, my 3gs is way smoother an much better than on the iphone 4s it even has problems loading the covers up as there is a delay in doing so as it seems to b slow
    whats happend there not as good as my 3GS
    So i tried to remove all songs and turned off the iPhone and powered the phone back up and put the music back on and its still jerky and not as smooth what the hells going on this phone should breeze through cover flow view
    My 3GS is still on iOS 4 does anyon have the same problems ? Try to scroll fast and it just jerks and slows down but like I say not on the 3gs
    Any help

    Hi, I have the same problem with my 4s.  After reading all the suggestion on this and simmilar forums I checked my picture files assigned to my albums.  I selected in iTunes an album, then right click to get pop up menu, selected "get info.  Then I went to artwork, copied it (right click, copy), then I copied the picture to picture editor to see the properties.  I noticed that some of my pictures assigned to albums are huge, something like 2000 x 2000 pix.
    When I repliced them with smaller ones, i.e. max 600 x 600, everything become smoth.  Now my cover flow work perfectly as it should be.  Definitly ther must be something wrong with iOS5 because before I did not notice such a problem on 3GS of 4 model, even I had the big picture assigned to the album

  • How do you slow down photo gallery autoplay?

    I have a working Spry photo gallery and just want to slow down the autoplay by a second or two.  How do I do that?
    The page in question is at http://helenglazer.com/clouds/cloudsmain.html
    Can't find the answer in previous posts.
    Thanks,
    Helen

    Open gallery.js
    There you will see:
    var gSlideShowInterval;
    if (gSlideShowInterval == undefined)
         gSlideShowInterval = 3000; // msecs between images.
    Change that to what ever you want.

  • Why my touch screen is slowed down///

    i bought my mobile nokia n 900 just few days ago..still even not one month have passed but when i  bought it its touch screen was very good..but  after two weeks almost it,s touch screen become slow....it is not as active as it used to..it is working so i even can not claim warranty and ask nokia center to repair it because it is not totally  stopped just it is slowed down so nokia centre people say it is working so no problem ..it is working but very slower than before..............any help about this

    thanks matthew...it is #12 in the top 12 post at the top of the board.
    12. The NEED for SPEED – Speeding up your N900
    These are recommended applications to help you speed up the response, movement, and transitions to your N900.
    IMO, this is how the unit should have been released from the beginning, however, there are 2 factors with this that are in play:
    Nokia is more conservative on this
    Lucky for us this is open-source and we have an UBER community to create these fixes for us to use!
    Be sure that you have installed the EXTRAS-DEVEL and EXTRAS-TESTING catalogs.
    The applications to install are:
    Black Plastic (additional theme packs are not required)
    Enhanced Linux Kernel for power users
    QCPUFreq
    Transition Control
    Swappolube
    Black Plastic – This is a basic theme pack that will make an immediate difference in the over-all appearance and styles of transitions to your N900.  You can adjust all these settings and transitions by going to:  settings/Plastic Theme Setup
    Enhanced Linux Kernel for power users – You do not have to do anything with this directly, though if you search this forum, you may come across some basic code for loading certain frequencies that you want.  To make this simple, just use the QCPUFreq. It will give you the ability to over-clock your device up to 1.15ghz
    QCPUFreq – This is an EASY way to change the over-clocking frequency to your device with a simple slide bar.  Don’t bother with the SmartReflex, just use the slider-bar.  Before you can over-clock above the 600mhz, you will have to tap the menu/enable overclocking.  There will be a pop-up about warranty stuff, this is protection for the developer.  I have multiple units OC’d since they started doing it around 3/2010, no issues on any of them….UNLESS SPEED IS AN ISSUE!  NOTE: EVERY TIME YOUR DEVICE IS RESTARTED, YOU WILL HAVE TO REDO THE OVER-CLOCKING.
    Transition Control – This allows you to change how fast all the transitions are.  You can change the numbers to anything you want.  I have set all of the options to 5.  I have heard others at 10, and others at 0.  If you really don’t care much about having to see a looong sweeping effects, and would like it to just be “blip”, then 5 or 0 will do it! 
    Swappolube – This will allow a complete “lube-job” for your N900.  If you tap “proposed/apply/store” then it will give the best option to your devices settings, and make it so that when you reboot your device, or change the battery, you will not have to reset this again. Details can be seen in a post by CPitchford @ post: /t5/Maemo-Devices/Make-your-N900-faster-with-Swappolube/m-p/765938#M19220 )
    To install them:
    Open xterm
    sudo gainroot
    apt-get install black-plastic-theme kernel-power-flasher qcpufreq transitioncontrol swappolube
    Or, if you want to install them all separately:
    apt-get install black-plastic-theme
    apt-get install kernel-power-flasher
    apt-get install qcpufreq
    apt-get install transitioncontrol
    apt-get install swappolube
    TO GO TO ORIGINAL FACTORY SETTINGS AND REVERSE ALL SETTINGS CHANGES:
    All you have to do is uninstall all of these.  All the factory settings will restore automatically.
    Open xterm
    apt-get remove black-plastic-theme
    apt-get remove kernel-power-flasher
    apt-get remove qcpufreq
    apt-get remove transitioncontrol
    apt-get remove swappolube
    or one long command:
    apt-get remove black-plastic-theme kernel-power-flasher qcpufreq transitioncontrol swappolube

  • How to add new increase the pool rather then trowing a error.

    Im trying to build a game and after many attempts and hours of thinking i did manage to create something that looks like a game.The problem now is that there are so many objects that are constantly creating and removing from the stage. that the game is starting to slow down(it is laggy.).So i have searched the net and understood that i will have to use a "Object pooling Method" rather than creating and removing the objects after i dont have any use of them any more, if i want to make the game more memory friendly.
    At first i didnt want to use this method (object pooling) ,but after a while i understood that i dont have a lot of options.So i started to search how and why and how.
    Yet in this example im just trying this for the bullets (for now) cause if i can do it for them, i can manage to do it for other objects and projects (it will be simple for me to understand what is happening ., what am i doing , when do i add an existing object from the pool and when im creating a new one(when there are non left, things like this)
    i did copy some part of this code from a tutorial that i found in the net but , from then i dont know how to increase the pool rather than throwing this error. I did try to create a new object or to increase the pool length but .... it is not working so im sure that im not doing something the way it must be done.
    so i have this so far :
    its a "simple" pool that calls a simple shape class (circle dot) and gives that to the main stage when the "SPACE" button is pressed
    package
              import flash.display.Sprite;
              import flash.events.Event;
              import flash.display.Bitmap;
              import flash.display.BitmapData;
              import flash.display.Shape;
              public class Bullet extends Sprite{
                        public var  rectangle:Shape = new Shape();
                        public function Bullet(){
                                  super();
                                  addEventListener(Event.ADDED_TO_STAGE, init);
                                  graphics.beginFill(0xFF0000);
                                  graphics.drawRect(-5, -5, 10,10);
                                  graphics.endFill();
                        private function init(event:Event):void{
    the SpritePool where i cant figure out how to replace the throw new error with some new code that will increase the pool
    package {
              import flash.display.DisplayObject;
              public class SpritePool {
                        private var pool:Array;
                        private var counter:int;
                        public function SpritePool(type:Class, len:int) {
                                  pool = new Array();
                                  counter = len;
                                  var i:int = len;
                                  while (--i > -1) {
                                            pool[i] = new type();
                        public function getSprite():DisplayObject {
                                  if (counter > 0) {
                                            return pool[--counter];
                                  } else {
                                            throw new Error("You exhausted the pool!");
                        public function returnSprite(s:DisplayObject):void {
                                  pool[counter++] = s;
    and the Game class (the documents class)
    package {
              import flash.ui.Keyboard;
              import flash.display.Sprite;
              import flash.events.Event;
              import flash.events.KeyboardEvent;
              import flash.display.Bitmap;
              import flash.display.BitmapData;
              import flash.display.Shape;
              public class Game extends Sprite {
                        private var ship:Shape;
                        private var bullets:Array;
                        private var pool:SpritePool;
                        public function Game() {
                                  Assets.init();
                                  addEventListener(Event.ADDED_TO_STAGE, init);
                        private function init(event:Event):void {
                                  pool = new SpritePool(Bullet,10);
                                  bullets = new Array();
                                  ship = new Shape();
                                  ship.graphics.beginFill(0xFF00FF);
                                  ship.graphics.drawRect(0,0, 60, 60);
                                  ship.graphics.endFill();
                                  ship.x = stage.stageWidth / 2 - ship.width / 2;
                                  ship.y = stage.stageHeight - ship.height;
                                  addChild(ship);
                                  stage.addEventListener(KeyboardEvent.KEY_DOWN, onDown);
                                  addEventListener(Event.ENTER_FRAME, loop);
                        private function onDown(event:KeyboardEvent):void {
                                  if (event.keyCode == Keyboard.SPACE) {
                                            var b:Bullet = pool.getSprite() as Bullet;
                                            b.x = ship.x + ship.width / 2;
                                            b.y = ship.y;
                                            addChild(b);
                                            bullets.push(b);
                                            trace("Bullet fired");
                        private function loop(event:Event):void {
                                  for (var i:int=bullets.length-1; i>=0; i--) {
                                            var b:Bullet = bullets[i];
                                            b.y -=  10;
                                            if (b.y < 0) {
                                                      bullets.splice(i, 1);
                                                      removeChild(b);
                                                      pool.returnSprite(b);
                                                      trace("Bullet disposed");
    any suggestions/help how to do it

    To put you on the path (the errors/events needs formalization), here would be a quick example. Your pool class:
    package
              import flash.display.DisplayObject;
              public class SpritePool
                        private var pool:Array;
                        private var counter:int;
                        private var classRef:Class;
                        // public get to know what's left in the pool
                        public function get availableObjects():int
                                  return counter;
                        public function SpritePool(type:Class, len:int)
                                  classRef = type;
                                  pool = new Array();
                                  counter = len;
                                  var i:int = len;
                                  while (--i > -1)
                                            pool[i] = new classRef();
                        public function getSprite():DisplayObject
                                  if (counter > 0)
                                            return pool[--counter];
                                  else
                                            throw new Error("PoolExhausted");
                        public function returnSprite(s:DisplayObject):void
                                  pool[counter++] = s;
                        public function increasePool(amount:int):void
                                  counter += amount;
                                  while (--amount > -1)
                                            pool.push(new classRef());
                        public function decreasePool(amount:int):void
                                  if (counter >= amount)
                                            counter -= amount;
                                            pool.splice(counter - amount,amount);
                                  else
                                            throw new Error("PoolDecreaseFail");
    Now you'd need to be catching those errors. Again, the errors should be formalized or you could use events by extending IEventDispatcher. I kept it simple.
    Here would be the simple Bullet class I'm using:
    package
              import flash.display.Sprite;
              public class Bullet extends Sprite
                        private var bullet:Sprite;
                        public function Bullet():void
                                  var bullet:Sprite = new Sprite();
                                  bullet.graphics.beginFill(0xFF0000,1);
                                  bullet.graphics.drawCircle(-5,-5,10);
                                  bullet.graphics.endFill();
                                  addChild(bullet);
    Just draws a red circle just to visualize it..
    Here would be a full example of using it. It will import both of these classes (saved as SpritePool.as and Bullet.as in the same folder). Paste this in the actions panel on frame 1:
    import SpritePool;
    import Bullet; // a simple red 10px circle
    import flash.display.Sprite;
    import flash.utils.setTimeout;
    // fill the pool, swim trunks optional
    var pool:SpritePool = new SpritePool(Bullet, 10);
    // grab some objects from the pool
    // array of currently held objects
    var myBullets:Array = new Array();
    while (pool.availableObjects > 0)
              myBullets.push(pool.getSprite());
    // display in random positions
    for (var i:int = 0; i < myBullets.length; i++)
              addChild(myBullets[i]);
              // position
              myBullets[i].x = int(Math.random()*stage.stageWidth);
              myBullets[i].y = int(Math.random()*stage.stageHeight);
    trace("myBullets has " + myBullets.length + " bullets! pool has " + pool.availableObjects + " left.");
    // now I want one more, but I should check for errors
    try
              // fail, none left!
              myBullets.push(pool.getSprite());
    catch (e:*)
              // this should be a custom event, but for speed, quick and dirty
              if (e == 'Error: PoolExhausted')
                        trace("D'oh no more bullets! I need more!");
                        pool.increasePool(10);
                        trace("Added 10 more, now available in pool " + pool.availableObjects);
    // try to reduce the pool by 15, which should error
    try
              pool.decreasePool(15);
    catch (e:*)
              // again should be a formal error
              if (e == 'Error: PoolDecreaseFail')
                        trace("Oops, can't reduce pool by 15! Let's trim all extras, available is " + pool.availableObjects);
                        // we know it'll work, no error checking
                        pool.decreasePool(pool.availableObjects);
                        trace("Left in pool: " + pool.availableObjects);
    // now lets wait 5 seconds and remove it all back to the pool
    setTimeout(ReturnToPool,5000);
    function ReturnToPool():void
              // now let's just return all the objects to the pool
              while (myBullets.length > 0)
                        removeChild(myBullets[myBullets.length - 1]);
                        pool.returnSprite(myBullets.pop());
              // now check the pool, should have 10
              trace("Amount of bullets in use " + myBullets.length + ", in pool " + pool.availableObjects);
    For ease you can just download my example source (saved down to CS5).
    Anything from here is just symantics. For example instead of throwing an error because the pool is too small you could simply increase the pool by a fixed amount yourself and return the objects requested.
    To keep objects as low as possible you could use a timer to measure the amount of objects in use over a duration and reduce the pool appropriately, knowing the pool will grow as it needs.
    All of this is just to avoid unnecessary object creation.
    BTW here's my trace which should match yours:
    myBullets has 10 bullets! pool has 0 left.
    D'oh no more bullets! I need more!
    Added 10 more, now available in pool 10
    Oops, can't reduce pool by 15! Let's trim all extras, available is 10
    Left in pool: 0
    (after 5 seconds)
    Amount of bullets in use 0, in pool 10

  • Notes Sync Error slows Mac to a halt

    Whenever I open Mail, my machine slows down & looking in system log I get this error:
    May 1 11:48:23 iMAC Mail[1305]: notes sync canceled, error:(null)
    It slows down TM backups & makes them take over 30 minutes (instead of just minutes with Mail program closed).
    I have deleted all the notes...
    Even when I turn off "sync notes" and anything to do with "Mail" in .Mac preferences the error persists.
    What is it trying to sync with?

    delected synservices from app support & all is ok

  • Wetransfer js error causes my computer to slow down

    Every time I send a file via WeTransfer I end up with a js error and then my MacBook Pro slows down to a grinding halt...literally. You can hear the hard drive grinding away. Every time I try to move the mouse or select a file or drop down I get the beachball which will hang for about 10-15 seconds before anything happens. I end up having to shut down all my programs and restarting to get the laptop back to normal. This only happens with WeTransfer. Any ideas what I can do to resolve the issue other than not using WeTransfer?

    First my computer turns off and goes black, then this window shows up...
    After that this shows up after typing in my password on the log in page...
    If I leave the HD plugged in after clicking either response the computer will just shut down again.
    If I unplug the HD this window shows up explaining the problem...

Maybe you are looking for

  • Ever since I downloaded the iOS 6 update, my car stereo no longer works like it did before

    My Pioneer car stereo worked exactly like it was supposed to with my iPhone 4s. By syncing to the car stereo, I could listen to all of my music on my iPhone and receive Pandora in the car.  Since I downloaded the iOS 6 update two weeks ago, my car st

  • Sending a file as a http response

    I am accessing a file on the file system and sending it back to the HttpResponse with the below code. My only problem is that every now and then the file transfer gets cut and the file is now downloaded completely. This does not happen after a certai

  • Bug in Weather for iOS 8 now missing animations.

    Hi everyone, Ever since upgrade to iOS 8.1 from 7.1.2 I've noticed that the weather app no longer shows background animations for cities outside of the USA. I have a feelings this has something to do with Apple switching from Yahoo as the weather inf

  • WDP Logical Lock

    Hi, I'd like to know if anyone have something up to this topic. I've got so far some docs (http://help.sap.com/saphelp_nw04/helpdata/en/a3/df5b1ee1bed348b198719e50af835d/frameset.htm) - but I'm more concerned about the implementation general design.

  • How to edit CANCEL TECO user exit

    Can anyone tell me how to edit the user exit for cancelling the technical completion. It will be like this TCODE ---> IW32 ---> ORDER ---> FUNCTIONS ---> COMPLETE ---> CANCEL TECHNICAL COMPLETION Thx & regards