Why does a closed NetConnection that has no event listeners or references stick around in memory?

It seems that if flash.net.NetConnection is instantiated and connected to an HTTP URL (such as an AMFPHP gateway), that instance is never picked up by garbage collection even after it has been closed and the only reference is set to null.
On the other hand, if the instance is connected to null (as would be done when used to play video/mp3 files), the instance is cleared from memory.
To clarify, the following connection will stick around in memory:
var stickyConn:NetConnection = new NetConnection();
stickyConn.connect("http://myserver/amfphp/gateway.php");
stickyConn.close(); stickyConn = null;
Whereas, the following connection will be cleared from memory immediately:
var tempConn:NetConnection = new NetConnection();
tempConn.connect(null);tempConn.close();tempConn = null;
Some things I have already tried to solve this issue:
set the client to an empty object (since the default value of the client is the NetConnection itself)
before closing the connection, call connect(null)
after closing the connection, call connect(null) and close it again
Has anyone run into this issue before? Is there a solution to this?

I am not defining a NetStream, as it is not necessary for AMFPHP communication.
I know for a fact that stickyConn is not cleared from memory because I am using a profiler that shows me how many objects of each type are still in memory (and I am able to view where/when each instance was instantiated)

Similar Messages

  • Why does my Finder indicate that my "iphoto library" is 13gb and "photo lib" is 15gb?

    Why does my Finder indicate that my "iphoto library" is 13gb and "photo library" is 15gb if they are supposed to 1 library used by both?

    kenamac1 wrote:
    Thanks Larry, but sorry if I'm being dense, but are you saying that the space being used is not 13gb (Iphoto) + 15 gb (Photo) = 28gb?  And that if I toss the iPhoto Lib I won't save 13gb?  That's what I not getting about this 'shared' library.
    Yes that is exactly what I said - and what the article I liked said with a somewhat detailed description
    Basically both libraries  use Linux HardLinks to the original photos - the finder sees each has containing the compete set of photos although the photos are only on disk once
    And deleting one library only deletes the links and a few overhead items - so again as I said would save very little space
    LN

  • Dear Ms. Qaya Ltfabh help me. I do not know why this is a problem that has been part of Russian Tvlbarmn(mozila firefox). What I Brgrdvnmsh Vnmydvnm again in En

    Dear Ms. Qaya Ltfabh help me. I do not know why this is a problem that has been part of Russian Tvlbarmn. What I Brgrdvnmsh Vnmydvnm again in English. Bkhvahydmytvnm send a screenshot if I tell you to see exactly my problem. Thank you
    I also say that in English I dont know if Nmdarm Mykhvahydbh help me help in the form of a video file or image...Anglysym your friends know I'm so weak, so therefore the description Vsvalattvn noticed something. If you have software that will solve my problem please let me download it, I probably am

    I don't understand what question you are trying to ask. Can you restate the question?

  • Why does it keep saying that an error occurred when downloading iOS 8?

    Why does it keep saying that an error occurred when downloading iOS 8?

    Have you tried updating via iTunes? I find that way's more reliable - I've never had any problems with updating that way.

  • Why is my audio recording that has been burnt to CD-R not playing on other audio equipment - its says no file or cant play.

    Why is my audio recording that has been burnt to CD-R not playing on other audio equipment - its says no file or cant play.
    What is the correct steps for burning the CD. I followed the help guide and done excatly what is said.
    Can someone please help?
    Thnks.

    did you burn it as a CD for audio CD players....or as a data disk?  big difference.
    Also could be the media type (seen that issue endless times)....... try a diff. CD media.  There are countless burn layers and CD blank media, no player or burner on earth can read or write to them all.
    burn another blank CD to make sure it wasn't a bad CD,.......reject ratio on bad CD and DVD is about 5-15% depending on type.
    Ive burned enough reject DVD and CD to fill a house

  • HT1430 Why does message "your Apple ID has been disabled" show up /

    Why does message " your apple id has been disabled" when i try to update Apps?

    Because your Apple ID has been disabled.
    http://www.apple.com/emea/support/itunes/contact.html

  • Why does my Mac say that I must deauthorise one of my other 5 computers so that I can authorise mine? I don't have any other computers.

    Why does my Mac say that I must deauthorise one of my other 5 computers so that I can authorise mine? I don't have any other computers.

    architecture12 wrote:
    I have 25 gb of music. 20 gb of movies. 5 gb of pictures. 10 gb of apps. 102 gb of "back up. and 85 gb of "other. which leaves less than 70 gb open on my harddrive.. Why? What is that almost 200 gb of memory? How Do i pinpoint it? I use time machine and an external harddrive to back up my files so what is that? any answers or ideas?
    Do not worry about the backups.  They will be deleted automatically after a week, or if your HD gets too full.  See #30 in Time Machine - Frequently Asked Questions.
    The "other" stuff is just that -- all sorts of things that don't fall into the few categories listed.  The operating system, system work files, plus lots of your stuff like documents, mail, etc.  See Lion's Storage Display

  • HT1766 Why does my pc say that there is no drivers for my new Ipad Air. I did a backup this night from the two week old Ipad Air that I smashed the front?

    Why does my pc say that there is no drivers for my new Ipad Air. I did a backup this night from the two week old Ipad Air that I smashed the front?

    Drivers are iOS specific....meaning if your old one had iOS 7.0.6 and your new one 7.1 then it needs different drivers.
    Is your iTunes up do date? if not, then updating it may help.
    You can also try using a different usb cord and port to see if that triggers the driver download.
    or, if that doesn't work, try going into your control panel, add/remove programs. Look for 'apple mobile device service' and uninstall that. THen plug your iPad in and it should reinstall.
    If that doesn't work, go back into the control panel but uninstall iTunes, and apple mobile device service and apple application support, then redownload and reinstall iTunes and see if that gets your drivers fixed.
    Another way to do that is go right click on 'my computer' 'properties' and go to 'device manager'
    plug your iPad in and do you see it show up in the list? YOu may need to click some of those little plus signs to open up the lists. If you see your iPad, right click on the name and you should see an option to update the driver.

  • Why does audio drop out when scrubbing iMovie events?

    Why. does audio drop out when scrubbing iMovie events?

    If the audio returns if you slow down scrubbing you are probably just scrubbing too quickly.

  • Why does status bar say that all items are not loaded?

    When I have the status bar displayed at the bottom of my page, and I load a page, it usually says 4 of 5 item complete, or 6 of 7, or even one time, 92 of 93. What does this mean exactly? And why does it never say all items are completed? Is anything wrong with the browser, or is this just code for something?
    Thanks,
    Jeff

    These days web pages have many little extras, not just images, that have to be downloaded when we click on a link to a page. Sometimes, for a variety of reasons (file availability, internet problems, browser, bad coding, local cache, ISP problem) not everything downloads.
    As long as the page seems to have all the information and nothing is apparently missing, I tend to ignore this.
    When all items are completed, the status bar shows nothing.

  • When using classic dialog controls in labview 7.1 why does the text color that I have selected always stays black?

    I have an older program created in LV 6.0.2 that uses dialog buttons. The text color is red or blue. When I load it into LV 7.1 the color stays black. When I edit text I can see that the color is correct but it will not display the color when I leave edit mode on the control. Even if I select a new button from the classic tools pallete "dialog controls" I am unable to change the text color.
    What is happening? Why does LV 7.1 prevent this text color change?
    Roger

    The dialog control colors are set by the operating system so they match other controls that the OS generates. So in LabVIEW 6, they were actually not behaving correctly.
    The following text is from the LabVIEW help on Dialog controls.
    "You cannot customize the appearance of the dialog spin control, slide controls, or progress bars because the controls and indicators use platform-specific drawing functions that do not support customization. You also cannot use Property Nodes and Invoke Nodes to customize the appearance of these controls and indicators."
    If you need different text color, you'll have to use the non dialog controls.
    Ed
    Ed Dickens - Certified LabVIEW Architect - DISTek Integration, Inc. - NI Certified Alliance Partner
    Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.

  • Why does Photoshop produce images that are from source data Photoshop can't read?

    I am getting this message "This image was generated from source data that Photoshop cannot read.  That data will be discarded."  When I open the image the data that has been discarded consists of the layers that were created in Photoshop.  I don't understand why Photoshop can't read data created in Photoshop.

    Thank you for the info.  I only have one version of Photoshop on my computer.  The one I created the images with won't open them.  However, I did have a version of Lightroom on my computer that I removed today.  It was newer than my version of Photoshop.  I am hoping that without Lightroom on my computer I will not have any more problems. (cross all my fingers)  The images that are corrupted are missing data.  The Metadata is missing and the layers are missing from the files. If the metadata is missing they won't open at all and if the layers are missing they will open up flattened, some of them are corrupted with data and color switched every which way in the image.

  • Why does my computer say that there is a problem connecting to a server when I'm in iPhoto?

    After I launch iPhoto, this message pops up every 10 seconds or so,
    There is a problem connecting to the server "Scotts Macbook"?
    Why does this happen? I'm not trying to connect to any server, how do I disconnect? I used to use the Macbook for my iWeb site, but I haven't done that for years.

    I'm having the same problem.  I'm running 10.7.2.   My main NAS just failed and I'm using a new one.   The old NAS was called "DATASERVER".   The new NAS is called "NEWSERVER".
    Many, but not all of my original files were located on and imported from DATASERVER which is no longer in use.  I can see all of my photos but when I try to open them/edit them it's clear that I just have thumbnails.  I get the error message "There was a problem connecting to a server "DATASERVER".  The server may not exist or it is unavailable at this time.   Check the server name or IP address, check your network connection, and then try again."
    Other information:
    * I'm using iPhoto 9.2.1
    * Currently in Preferences I have the "copy items to the iPhoto library" CHECKED.
    * I can access the directories, files, etc. on NEWSERVER via Finder.
    * I have gone into keychain and deleted any references to DATASERVER
    * I have turned off Time Machine.
    * At one point it was asking me to find the original file and a finder window would pop up.  I could then point to the original file only to get the "There wasa a problem connecting to a server "DATASERVER" again. 
    I do not know if I'm using a Managed Library or a Referenced Library since I set this up long ago.  I seem to recall at one point I tried to manage the library myself but then changed.
    Any help that you can provide would be very much appreciated.  I've scoured this site and others but cannot find a solution that works. 

  • Duplication of tunes - why does I-Tunes do that?

    I've read all of the posts on duplicates and obviously there is no easy way to 'bulk remove' duplicates - you have to go through them one at a time. However when I click 'show dupliates' it comes up with +11,000 tunes (I have a rather large collection).
    All I would like to know is, why does i-Tunes duplicate the songs? I can understnd duplicates because a tune is in 2 different places or its on 2 different discs but it seems to just duplicate songs (sometime 3 or 4 at a time) for no reason.
    I'm just curious to know why.

    Make sure that you not run Firefox in permanent Private Browsing mode.
    * https://support.mozilla.com/kb/Private+Browsing
    * You enter Private Browsing mode if you select: Firefox > Preferences > Privacy > History: Firefox will: "Never Remember History"
    * To see all History and Cookie settings, choose: Firefox > Preferences > Privacy, choose the setting <b>Firefox will: Use custom settings for history</b>
    * Deselect: [ ] "Permanent Private Browsing mode"

  • Why does my iTunes say that this item couldn't be downloaded at this time

    Why does it do this

    Hi Spuds Fury,
    Thanks for using Apple Support Communities.
    For troubleshooting on this, take a look at this article:
    Can't connect to the iTunes Store
    http://support.apple.com/kb/TS1368
    If your issue is still unresolved, follow steps in:
    iTunes: Advanced iTunes Store troubleshooting
    http://support.apple.com/kb/TS3297
    Hope this helps,
    Mario

Maybe you are looking for

  • Is anyone else having problems with iMessages?

    It stopped working randomly and now says keep waiting for activation... Is it Apple's problem? Does anyone know how to fix it? Thanks

  • Any standard function module to read data from a cube

    Hi, I want to read data from a cube say XYZ, into an internal table. Is there any standard function module to do this? If so can anyone plz tell me what change should i make in the function module for my requirement. Regards BW Fresher.

  • LSMW doubts

    I want to upload two materials using LSMW  batch input recording for MM01 transaction. 1.One material  with Basic view, Accounting, Purchasing,  MRP1,MRP2,MRP3,MRP4 views 2.second Material with Basic view, Accounting, Purchasing and no MRP views. My

  • Trying 2 purchase iTunes TV shows & it says we need 2 upgrade everything!

    Hi there, Our config: 10.4 OS X (intel) Itunes 8.2.1 (6) Safari 3.0.4. We are trying to purchase TV shows in iTunes - it says we need to upgrade to iTunes9 We upgrade to iTunes9 - then it says we need to upgrade Safari to 4 We try to upgrade to Safar

  • Push mobileme syncing in one direction only?

    I have just inherited an iPhone 3G from a son who has upgraded to the new iPhone. I am having problems with the mobileme syncing. It only seems to push in one direction! Entries to iCal made on my MacBook and pushed to my iPhone but entries to iCal m