EventListenerList & WeakReference: a match made in heaven

It makes so much sense I wonder why Sun didn't implement EventListenerList with WeakReferences. That would save almost everyone from some memory leaks.
Well, not everyone is so behind. I managed to find this:
http://www-iiuf.unifr.ch/iiufdev/doc/public/iiuf/iiuf/util/EventListenerList.html
http://www-iiuf.unifr.ch/iiufdev/doc/
Any thoughts?

Is this a dead cat?I don't think so.
I group listeners in to two categories:
1) Those that can be held by weak references (because there is some other "strong" reference keeping them from being GCed before their time).
2) Those that are only held by the listener list.
In the first case it makes sense to hold a weak reference from the listener list. In the second case a strong reference must be held.
The problem is in deciding which category a particular listener falls into.
How would more bugs be created: Putting listeners into the wrong category, or holding strong references to all listeners and forgetting to remove them at the proper time?
I don't know the answer.
One thing I have tried is to create a Proxy listener that holds a weak reference to its target. When the target is GCed the Proxy can remove itself from the listener list by putting the WeakReferences on a ReferenceQueue.
You could probably make a generic weak listener proxy using reflection and the java.lang.reflect.Proxy class. I was working on this at one point, but never finished it.

Similar Messages

  • K8N Neo + Hyper6 with 2 LED Fans is a match made in heaven!

    Here is the proof...
    Idle:
    http://members.iinet.net.au/~teknophyle/images/CoreCenter_Idle.png
    Load:
    http://members.iinet.net.au/~teknophyle/images/CoreCenter_Load.png
    Room temp. between 25C and 28C
    Coolermaster Hyper6 with 2 LED Fans ( 1 fan blows in and the other fan blows out )  
    Front of case:
    Two Coolermaster LED fans blow cool air straight to the Hyper6 and 5900XT.
    Back of case:
    Two Coolermaster LED fans suck any hot air straight out the back.
    The only problem I had was installing the Hyper6 retention mechanism.
    You have to file out a groove at the base of the retention so that it doesn't press on a small transistor-like component on the motherboard.
    But the result is heavenly ..... wouldn't you agree?  

    Oyeah, this Hyper 6 HSF from cooler master is one of the many reason why I choosed to replaced my ABIT KV8 with MSI K8N Neo Plat. K8N uniqe layout design was definitely the only best match for this massive HSF. Yes this thing could lower my proc a lot better than the stock HSF, but it also consumed a wider area around proc than any ather HSF did, at least in my old ABIT KV8 I could only use one fan to suck the hot air (but still to close to PSU) since using the 2nd fan will only caused the fan blocked by the VGA card (AGP card was to closed with the fan leaving only 2-3 mm gap). Somehow I think this mobo layout was designed to accomodate Hyper 6 HSF.

  • CS and CR2 - apparently not a match made in heaven  :^/

    Hello all!
    I just bought a Canon 30D this week. I shot with it for the 1st time this weekend - I was so excited to get home and open my RAW files but I'm having real trouble. The Canon 30D is producing CR2 images (camera raw 2 I am guessing.) CS is not able to open them. My 'old' camera was the 1st Canon digital rebel, I have no problems opening those raw files....I've been working with raw files for quite some time now......the raw concept is not a new thing for me.
    So, I hopped on the web this morning in search of answers. I went to the Adobe site and downloaded the Camera RAW 2.4 update with the DNG converter. I read in a few places that you had to convert the CR2 files to DNG files - and with the updated camera raw plugin (2.4) CS should be able to open them. I can't even get the DNG converter to convert my CR2 files! ARRRGGHHH! When I follow the instructions, (drag the folder of images containing the raw files over the DNG converter icon...that launches the converter) it says that it can't even locate any raw files. I tried dragging a few individual raw files to the converter...no luck with that either. I'm getting a bit frustrated. I blew the bank on the new camera and lens....there is no way I can upgrade my software any time soon. I'm thinking that I can't be the only person with this problem.
    I'm really, really hoping that someone has been though this and can offer some advice! Oh....I'm running Windows Vista if that matters to any of you.
    Thank you in advance for your help!

    Quote: "ACR 2.4 is the only version of Camera Raw that is still available for download for Photoshop CS. If your camera was added in no later version of ACR you have two options. The first option is to upgrade to the current version of Photoshop which uses ACR 4.1. It supports a lot more cameras, and yours is one of them.
    If upgrading is not an option for you, then you should go online and download the latest version of the DNG converter (currently 4.1) and use it to create Digital Negative (DNG) copies of your raw images. Those DNG files can then be opened in Photoshop CS using ACR 2.4."
    http://www.adobeforums.com/cgi-bin/webx?128@@.3bc47b9c

  • Bluetooth and skype... match made in heaven?

    Alright, I use a Nokia HS-26W Bluetooth Headset with my cell phone, and I'm generally pleased with it. I'm considering buying a Mac, in which case I will continue to use skype as I have for a while on my pc. When I migrate, will I be able to use the Nokia headset with the computer transparently... and consequently use skype with the headset? Thanks.

    Your plan is pretty good.  The lightroom catalog needs to be on C:/ drive.
    Import your photos into the library by Year/Month & Day.  Convert images to DNG on import.  Saves a lot of HDD space. See image below.
    Create Collections to organize images rather than moving images around in their imported location. Using collections will not alter the images.
    Zenfolio is a good choice also.

  • Lightroom & OneDrive - a match made in heaven?

    My photo collection is in a real mess! I'm seriously considering using Lightroom to organise and I'd really appreciate some feedback on my proposed approach as set out below.
    Importing and Storage
    Set Lightroom to store the catalog (and other Lightroom files) in a OneDrive synced folder on my hard drive called Lightroom.
    Set Lightroom to import all photo files into a OneDrive synced folder on my hard drive called Photos.
    Set Lightroom to manage sub-folders and file names (including reorganising my existing collection).
    Set Lightroom to watch and automatically add new files from the Photos file.
    Organising and Editing
    Set Lightroom to write metadata into the actual photo files.
    Use Lightroom to assign keywords, make edits and organise into albums.
    Set Lightroom to export/save edited photos and albums into sub-folders in OneDrive.
    Backup and Sharing
    Make regular backups (in duplicate) of my hard drive that contains the synced OneDrive folders.
    Publish my favourite photos and albums to Flickr for sharing and viewing on mobile devices.

    Your plan is pretty good.  The lightroom catalog needs to be on C:/ drive.
    Import your photos into the library by Year/Month & Day.  Convert images to DNG on import.  Saves a lot of HDD space. See image below.
    Create Collections to organize images rather than moving images around in their imported location. Using collections will not alter the images.
    Zenfolio is a good choice also.

  • 3G iPod and Tiger .... Not a Match Made In Heaven

    Some time ago, when I first installed Tiger and then iTunes 6, I noticed that my iPod took longer to be recognized by my computer. I thought nothing of it until a few weeks ago. Then it started to take an hour to be seen on my desktop. Since then, I tried to connect my iPod to another computer running Tiger and restored it from there. I could then see my iPod on my computer, but then the problem started all over again. I tried using the other computer, but that computer will no longer see my iPod. I then wiped iTunes out and reinstalled it. My iPod still could not be seen. I tried connecting my iPod to an older G4 tower which is running 10.3, and it could see my iPod. So I restored it again, from that machine. I tried plugging the iPod back into the other two machines running Tiger, and my iPod would not show up on the desktop.
    When connected my machine, the iPod acts as if it were just plugged into the wall to charge. On the other machine running Tiger, the "Do not disconnect" comes on the screen of the iPod. But on the old machine, my iPod works fine and can have music transfered to it.
    Can someone tell me why my iPod can't be seen on my machine? I have followed all of the directions on the Apple Support pages, but nothing works. Please help!!!!!

    OK so, to summarise:
    1) The iPod works when connected to the Panther (10.3) equipped G4 tower.
    2) The iPod doesn't show up at all on the desktop or in the iPod Updater software or in DiskUtility or in iTunes on either of the Tiger equipped computers (eMacs?)
    However if you connect it to either of them, then iTunes freezes until it is removed? The iPod does appear in System Profiler on these computers.
    3) You have no other firewire devices connected to the Tiger machines.
    4) you have reset the iPod ( following the instructions found at http://www.info.apple.com/kbnum/n61705 )
    5) you have restored the iPod , using the G4
    Mmm.
    Further thoughts:
    If its working with the G4 under Panther, and has crrect sofwtare installed, then it must be related to either the software or hardware on the two Tiger computers. The fact that it shows up in system profiler suggests that its not a firewire port issue, though. I'd normally aexpect this to be a problem involving a conflict with another FW device, but if there are none connected it obviously can't be.
    1) try reinstalling iTunes
    2) zap the PRAM
    3) try a new cable
    Cheers
    Rod

  • Match not made in heaven!

    I subscribed to iTunes Match a few years ago. In January of 2013, I did not renew my subscription as I left Apple to the land of Sony. Yesterday, I purchased a new iPod Touch looking forward to returning to the world of iTunes. Upon subscribing to Match again I have discovered all my music is literally gone, and the only songs available are those I purchased and none of my ripped CDs etc arethere anymore. Is this normal?

    Hi,
    Yes.
    Once match expires you lose access to all music in the cloud except for iTunes Store purchases. It is up to you to make a back up of your music. The music needs to be in your iTunes library when you resubscribe to match.
    Jim

  • A marriage made in Heaven..Illustrator & Corel Draw.

    Just sayin...
    Starting a new job over a year ago, I was forced to do production art in a program called Corel Draw. I was born and raised in Illustrator, and I love so many feature that Illustrator has but..... I have also learned Corel and usig it in print production some of the features just blow away Illustrators version. I got spoiled with the ease of use. Now that my company is trying to switch over to Illustrator we are getting very frustrated. I would love for Corel Draw and Illustrator to get married. Adobe please please please incorporate a tool like the following in next versions of Illustrator
    Corels "Power Clip" Vs Illustrator "Clipping Masks"
    Corel allows you to put things in a nice clean container. Even in outline view you can not see what is hidden in the power clip. With illustrator in outline view its like nothing was ever put into a clipping mask. I want clean... we put our own printers marks on manually and trying to see through all the scribble it tough.
    Better Editing in Corels "Power Clip" Allows you to go in and edit anything from text, color etc. then escape back to your original View. Editing an Illustrator clipping mask is cumbersome to say the least. Lets make it simple please.
    Corels "Transform Tools" Vs Illustrator transform tools....
    Corels ease of use especially for "step and repeat" is unmached in Illustrator.. Corel is so easy while Illustrator is like driving a semi-truck. Its just plain old clunky!
    Don't get me wrong I love Illustrator..... I just wish the two would get married and make the best of both worlds.
    Just sayin....

    Would like to add Corel's ability to utilize blending modes from Phothsop layers (eg: so Photoshop drop shadows multiply rather than gradiate when placed on top of backgrounds in illustrator).
    Illustrator is great, but more competition would be good for the graphics market, so we get the level of software development we had in the past. Where is Kai Krause, we need him.

  • Evoluent Vertical Mouse 3 & Snow Leopard - Match made in ****

    Been happily using an Evoluent Vertical Mouse for some time now with Leopard. Today I set up Snow Leopard as well as installing USB Overdrive as I'd done previously and while I can program buttons on the Evoluent, it will not work at all with Expose. Additionally on hover, the mouse will not highlight and will not trigger sub-menus where present. Hugely frustrating and could honestly be a deal breaker for me as the Evoluent is the only mouse I've ever found to be truly comfortable for extended periods of time.
    I've also tried SteerMouse but that seems to be even less stable.
    Help!

    Assume you mean the following section but all that says is that Evoluent doesn't offer a driver for the Mac and to use the two third-party drivers I've already tried:
    Mac
    ▪ 2 buttons and a scroll wheel in OS X or newer without a driver: Click here to see why Evoluent does not supply a Mac driver.
    ▪ Shareware drivers are available at
    www.plentycom.jp/en/steermouse and
    www.usboverdrive.com for programming the buttons.
    (Evoluent has no business relationship with these vendors.)
    ▪ USB port.

  • Airport Extreme and a Lacie Rugged - match made in ****?

    After giving up with a time machine I have purchased an Airport Extreme. I have my itunes library on a Lacie Rugged drive attached to an Airport Extreme.
    The drive is one of my login items. Recently it has failed to connect on launch but when I go to airport utlity the extreme light is green. i can also access the drive fine through finder. I changed the name and maybe didnt change it on the login item list- could this be a problem? (have since re-added it following name change from robbie's airport to simply 'airport')
    Is it a problem with the Lacie in terms of going to sleep or not having enough power? If so then I will simply buy a new nas and attach it instead. Im using it for sonos, hence why my music is on an external drive.
    any hints recommendations gratefully received. thanks

    So if I connected the hub to the airport extreme with the lacie plugged into the hub?
    Not tried this yet. Have got an app from the store which automatically mounts the drive. Just worried if the mac is left off for a long time and the drive is inactive will it go to sleep and wont automatically be woken up?
    Im trying to find a long term solution.

  • Maxtor 3200 v Apple Mac - a love not made in heaven!

    I have a Maxtor Personal Storage 3200 external HD which I was using as a Time Machine. The ex-HD is connected to the Mac directly via a USB cable. Recently, the Time Machine has stopped backing up files full stop.
    I have tried the following steps, but "com.apple.TimeMachine.plist" does not exist in the library and the Mac does not even recognise the ex-HD on the system.
    Open Macintosh Hard Drive > Library > Preferences
    Locate the "com.apple.TimeMachine.plist" file and delete it
    Restart your computer
    Open System Preferences (gear icon on the dock)
    Click Time Machine
    Setup Time Machine again by choosing your drive as the destination and click Use for Backups
    Grateful for any other suggestions.

    you are looking in the wrong library for the plist. you need the one at the top level of the drive, not in your home directory. but if the system does not see the drive the plist is not the problem - the drive is. do you see the drive in disk utility? if yes try repairing it with disk utility. repair disk, not permissions.

  • G2 iPod and Tiger: a match made in heck

    Hi. I purchased my G2 (touchweel/firewire) iPod when I still had my old computer, running OS 9.2.2. Now I've upgraded computers (15"PB w/ OS10.4.4), but can't currently afford a new iPod to "go with it". I'd like to be able to continue to sync to my trusty G2 device. So I goes to http://docs.info.apple.com/article.html?artnum=60971 , which tells me I need iTunes 4.7. hmmm...I currently have iTunes 6.
    My question (before I go off and try to sync and get into a biggol' mess): Is iTunes 4.7 the MINIMUM I need for my G2 iPod or is it the MAXIMUM? In other words, will my iPod accept nothing BELOW iTunes 4.7 or will it accept nothing ABOVE iTunes 4.7? Or will it ONLY accept iTunes 4.7? The abovereferenced page makes none of this clear.
    My second question: http://docs.info.apple.com/article.html?artnum=61688 says my G2 iPod runs iPod Software Version 1.5. Since that's what's already on it (it's got tons of music on it right now), do I need to re-download it and have it lurking somewhere in the background before I sync? Or once it's "on" the iPod, should I just leave well enough alone?
    My final question (for now): If I do, in fact, need to be running iTunes 4.7 to be able to communicate with my G2 iPod, will that supercede my current v.6? Or what? Can I run them simultaneously? Will that not confuse my poor PowerBook (much as I am clearly confused)?
    Thank you, whomever you may be, o fair answerer of my queries.
    15" Powerbook   Mac OS X (10.4.4)  

    1. Your iPod can sync with iTunes 6; the requirements listed are the minimum needed to use all features of the iPod, and synching music with a second generation iPod can be done with iTunes 2.04 on Mac OS 9.22.
    2. You do not need to reinstall the iPod's firmware before using it.
    (10145)

  • ITunes Match - and my departure from Apple

    I am a music enthusiats.  I bought my frist CD in 1990, about 2 years before I even owned a CD Player.  My cassette tape collection was in the thousands and I kne it was only a matter of time before I made the switch to the new technology.  Oh ya, and I was only 12 years old at the time. 
    So jumping forward to 2007 my music collection was in excess of 10,000 CD's.  And here comes the iPhone.  Up to that point I had used non-Apple products to carry my music around not becasue they functioned better, but becasue they offered the huge capacity at much lower prices.  But now I was getting older, thiking more about simplicity and the abiltiy to have everything I needed in one device.  Sure I had to routinely shuffle around what music I was carrying with me, but simplicty and ease of use had become important to me.
    Now jump forward even further to 2011 and the introduction of iTunes Match.  What a perfect solution for me.  I could now carry around almost half my library and I no longer had to shell extra money for the highest storage capacity iPhone.  It was a "Match" made in heaven.  In fact I was so happy I made the full switch over the next year or so.  I ditched my Windows PC for a Macbook Pro.  I dumped my barely funtional Logitech Revue for an Apple TV.  I gave away my low end entry level Android Tablet for an iPad.  Over those twelve months my house became an Apple house.  And then, Apple got left in the dust......
    Today, direct competitors to Apple are producing smartphones that have specs that far surpass the iPhone.  Those competitors are selling media content and services that rival iTunes in quality, and beat it heavily in pricing.  And that is where I stand at this point.  I am at a crossroads. 
    But as I stated at the start, I love music.  It is my biggest psychological and emotional driver in life.  So my question is, can we get options for additional capacity with iTunes Match?  I would pay more than $24.99 for increased capacity with iTunes Match even tthough other competitors offer more capacity at that same $24.99 price point.  My subscription expires on the last day of this month.  I have downloaded my collection out of iCloud in anticipation of needing to move it over to another service.  And once I do that I will begin to have to make other considerations.  I switched my cellphone plan to one of these no-contract options that the major carrier I'm on offers, for the purpose of bringing the monthly cost down.  I'm ready for a new phone and can see very good options out there that I can pay for in full (rather than finance), which would save me a tone of money over getting a new iPhone at full price.  But again, it all starts with the music for me.  Financing a new iPhone because I was able to get greater storage capacity with iTunes Match is far more prefable at the moment than going with the competition. 
    So not to beat a dead horse, but please increase the capacity for iTunes Match, even if it means having to pay more.

    pezzman77 wrote:
    So my question is, can we get options for additional capacity with iTunes Match?
    No. Not at this time.

  • How to define join in physical layer between cube and relational table

    Hi
    I have a aggregated data in essbase cube. I want to supplement the information in the cube with data from relational source.
    I read article http://community.altiusconsulting.com/blogs/altiustechblog/archive/2008/10/24/are-essbase-and-oracle-bi-enterprise-edition-obiee-a-match-made-in-heaven.aspx which describes how to do it.
    From this article I gather that I have to define a complex join between the cube imported from essbase to my relational table in physical layer.
    But when I use Join Manager I am only able to define jooin between tables from relation source but not with the imported cube.
    In My case I am trying to join risk dimension in the cube based on risk_type_code (Gen3 member) with risk_type_code in relation table dt_risk_type.
    How can I create this join?
    Regards
    Dhwaj

    Hi
    This has worked the BI server has joined the member from the oracle database to cube. So Now for risk type id defined in the cube I can view the risk type code and risk type name from the relational db.
    But now if I want to find aggregated risk amount against a risk type id it brings back nothing. If I remove the join in the logical model then I get correct values. Is there a way by which I can combine phsical cube with relational model and still get the aggregated values in the cube?
    I have changed the column risk amount to be sum in place of aggr_external both in logical and phsical model.
    Regards,
    Dhwaj

  • Xbox Live on Lumia 800?

    I have a Lumia 800 and didn't came with Xbox Live on it. Maybe some country/region stuff in which I understand is Xbox Live is not available in the Philippines. Instead I have the "Games Hub" where all my downloaded games can be found.
    Recently. A bunch of Xbox Live games became available in the market. And I tried downloading one that is free. The "Flowers Game". When I downloaded it. I cant seem to find it anywhere on my phone. Is it because I dont have Xbox Live? How do I install Xbox Live or resolve this in another way?
    Thanks.

    User error on my part... 
    I'm happy to report all functions of the MM450 are working beautifully with my Lumia 800 (e.g. full zune control, making/recieving calls).  The two devices are a match made in heaven.
    Cheers...

Maybe you are looking for

  • Can I share itunes purchases with my partners account on the same iphone

    Both my partner and I have purchased iTunes on separate accounts. We want-to combine our purchases onto a single iPhone  playlist is this possible?

  • Document not picked in f110 payment

    Invoice doc: 5000000001 Due on: 12/30/2008 Baseline date: 11/10/2008 Payment terms: 50 days net due Vendor master details: Vendor: 241344 Payment method: E Payment proposal Details: Payment run on 12/29/2008 through F110 t-code Parameters: Identifica

  • CS5 Indesign.exe experienced an error and needs to close. When opening File

    This is what it shows for error: AppName: indesign.exe AppVer: 7.0.3.535 ModName: paragraph composer It opens the document for about 10 seconds and then I get the error... I tried clearing preferences, no addins, no new fonts added. Any other suggest

  • Mac on Acer Laptop

    Hello all.. I was wondering if it's possible and not too hard to install Mac OS on a laptop or a regular PC. I've got a nice 3.4ghz intel dual core for a pc and a 1.6 turion dual core in my laptop... With this ongoing B.S. of vista and what not I thi

  • Whatsapp running without BB Plan

    Hello, I am using BB 9360 with a Vodafone connection. Recently I changed my number and since then I have noticed two changes that I have no explanations for. 1. I have not activated any new BB Plan in my new number yet ( hence it is showing as 'edge'