Is it correct to say you can never have a memory leak in a java application
Also, what is the reasoning/advantage behind the developer not being allowed to explicitly call the garbage collector? Seems a simple thing to allow and would it not get rid of all the timing problems caused by the unpredictability of when the GC will run?
Not only dispose of Window but also close of Input/OutputStream,My experience is failing to close streams won't cause any leaks (for a file output stream, changes just aren't being reflected in the file).
cancel of Timer andWhich timer? AFAIK they (swing/util) both use a Thread and there's no need to let go of any native resource.
dispose of Graphics.Not always (eg if you override paintComponent you shouldn't dispose of your Graphics object)
Who says it's the responibility of the programmer to "release stuff that uses native handles" and how
do you know? I consider this a flagrant breach of the Golden Rule of GC (you let go of the object
reference and we collect the garbage). It's a mine may will step on because information about it is
hidden in the documentation.And how would that happen? The finalize method isn't guaranteed to be called (correct me if I'm wrong) in certain conditions, so there really is no place to put the cleanup code (except for a finally block or shutdown hook in the code that created the object). I don't think mentioning something in the documentation is the same thing as hiding information.
If you use like SWT then it's explicitly mentioned that you're responsible so there's no one to blame.I recently read that article. I think it's good practice to follow that rule.
When the JVM process terminates the OS can reclaim all resources it has allocated, including what the
Java program leaked.Do you have any proof of this?
Similar Messages
-
I'm looking to upgrade the RAM on my Intel 2.4 Core 2 Duo unibody MacBook, which currently has 4GB pre-installed Apple RAM. In searching for an answer to whether this machine is expandable to more than 4gbs of RAM this is one answer I came across that I believe is credible:
"Apple lists what they think should be the maximum amount of RAM. However it is not correct. Your Mac can accept 8GB of RAM. Take a look at OWC (just click on OWC) that will take you to the site that sells RAM specifically for Macs. Your Unibody MacBook can accept up to 8GB of RAM 2X4GB. Take my MacBook Pro for instants, Apple claims the maximum amount of memory is 8GB. But in reality it can take up to 16GB. It has more to do with the Processor, rather than the logic board itself. You can take up to 8GB." (Credit: 'coander15')
Like I said, I don't doubt the credibility of the answer, I just am looking for someone to give me the "Apple explanation" as to why they cap the White Unibody MB @ 4GB of memory. It seems to be a common consensus that this model machine IS expandable up to 8GBs when looking through discussion forums. I've taken into account the marketing aspect of this from AAPL's perspective, but if someone could lay it out in any amount of detail logistically, I'd greatly appreciate it. Bottom line, I'm trying to assess the risk in upping my machine's memory.
Thanks!When the 1066Mhz RAM first came out 4gb sticks cost $600 each and 8gb sticks were $1600 each. Apple didn't bother testing them since no one was going to pay more for 2 RAM sticks than they paid for the MacBook. Prices later came down but Apple was already on to the next model and didn't bother going back to test on the older models. They left that up to third party sellers.
-
I just downloaded the new Mavericks operating sytem on my mid 2010 MacBook Pro, 17" 2.53GHz, Intel Core I5 machine. My IPhoto is no longer working at all, I'm getting an error message that says - "You Can't open the application "IPhoto" because it is not supported on this type of Mac". I also loaded Mavericks onto my other MacBook Pro 17", mid 2009 model and everything works fine. I would think that the newer Mac would easily work with IPhoto. Also, when I try to download from the App Store, it asks for my Apple ID and Password, I enter it, and then the little spinning color wheel just spins forever, with nothing ever happening. I tried downloading the IPhoto Upgrade but it never actually downloads, HELP!!!
What version of iPhoto do you have installed? Is if one of the versions shown as not compatible in this screenshot?
If it is then go to the App Store and download iPhoto 9.5. It will be free if you have an iPhoto 9 or later verson currently.
OT -
Help, my hard drive is about to die and icloud won't let me sign in it's saying "you can't sign in becauseof server error"
The best approach would be to take the iPad to the school's IT person and see what is going wrong, why it will not accept your sign-in. That person can make sure the userid and password are correct on the iPad.
-
Transfered photos from IMac with Iphoto 9 to a mac book with Iphoto 11 now Iphoto 09 errors out saying "You can’t open your current photo library using this version of iPhoto.You have made changes to your photo library using a newer version of iPhoto. Please quit and use the latest version of iPhoto." We have not updated or changed anything on the IMac all we did is transfer photos. Any help would be appreciated.
LarryHN is correct. The only way this message occurs is if the iPhoto Library database is upgraded to a newer version.
You could try holding SHIFT-OPT-COMMAND when launching iPhoto from the dock and checking only "Rebuild the iPhoto Library Database from automatic backup" and hope it restores the previous database prior to the upgrade.
If that doesn't work, you can install iPhoto '11 on your iPhoto '09 computer. If I understood the iPhoto '11 Mac App License agreeement correctly, you can install it on any personal, non-commerical computer you own running 10.5, 10.6 and 10.7. -
When trying to open iPhoto the computer says:
‘The photo library needs to be upgraded to work with this version of iPhoto.’
So I click ‘upgrade’
Then it says: ‘You can’t open your current photo library using this version of iPhoto.’
Etcetera...
What to do??
TheoIs your Apple Intel-based, poppelmacbook? If not, you should consider treating yourself to a new Mac. Last December I gave up my old because it just could not update...anything because it was not Intel-based. Updating everything on this OS to 10.9 has been confusing for me, but I just could not work with that old Mac because the updates were too smart? for my 10.6. It is upstairs now...for visiting family: games, garage band, etc.--things I never did use. Apple refurbished and purchase the extended warranty. Apple loyalist since late 1980's.
-
TextEdit is not working. I have tried repairing and I have tried reinstalling but it still says "You can't open the application TextEdit.app because it may be damaged or incomplete."
Can anyone give me some other ideas as to how to fix. Thanks.Thats the first thing I tried last night. And reinstalled just textEdit but no luck, then I deleted TextEdit and reinstalled it again and I was still getting the same message. Tried pacifist this morning again but this time I tried reinstalling the whole apps package half way through its says it cant reinstall due to multiple missing files.
Tried the repair option on the OS disc it says everything is fine -
After updating my MacBook Pro to yeosemite I want my old desktop picture back. I did a full back up before the install. I found the "Settings" folder in Time machine but when I try to open it I get an error message saying "You can not open this folder. It is in TimeMachine".
Can you browse the Time Machine drive from Finder?
If you can and you know where the picture was stored ie on your desktop you can browse through the folder structure to the picture copy it and paste it somewhere on your new install before right clicking it and 'set as desktop background' -
I cannot use iCloud on Windows 7, as it won't recognize my apple ID when i try to sign in to icloud it i get error saying "you can't sign in because of a server error (please help some one)
Although your message isn't mentioned in the symptoms, let's try the following document with that one:
Apple software on Windows: May see performance issues and blank iTunes Store -
I Am set up as primary for Apple cloud drive. my apple I'd comes up in my husbands settings on his iPad. I try to add him in the family section and it says you can't add yourself! How do I get his apple I'd back to his cloud settings?,
i downloaded the new software on his iPad and may have put in my Apple id and password! How do I chabeg this? Yikes!
thank you!I ran into the same issue.
Go to "Settings", "iCloud", scroll to the bottom and "sign out" It will delete everything iCloud related upon your approval (don't worry, everything will remain in the cloud. Once signed out, in the same settings location (under "Settings", "iCloud") sign in using his Apple ID and Password.
Hope this helps. -
When I try to add a New Event to iCal a dialog box keeps saying "you can't add or change events in the Birthday Calendar". iCal is, however, receiving up-dates from my other devoces via iCloud. Can anyone help unblock this for me please?
You can not add events to the birthday's calendar. To add birthday's to the birthday calendar you need to add the birthday to a contact in the Contacts app.
You can set your default calendar here:
iCal > Preferences > General > Default Calendar and chose the calendar you want to default to. -
I downloaded an album and one single that I purchased just fine and then purchases another single and I keep getting an error message that says, You don't have enough access priviledges. What can I do to get this song? I am just going to have to ask for a refund and forget it?
What version of iPhoto do you have installed? Is if one of the versions shown as not compatible in this screenshot?
If it is then go to the App Store and download iPhoto 9.5. It will be free if you have an iPhoto 9 or later verson currently.
OT -
? Why does my Photoshop PS2 open on my Mac Book Pro OS 10.6.8 Intel Core 2 Processor but not on my just purchased Mac Book Pro OS 10.7.3? On my new machine I get a message saying "You can't open Photoshop CS2 because Power PC applications are no longer supported". I don't have a Power PC on either machine and this App does run on the older machine with an Intel processor. benrusy
This is not new. The fact that Mac OS no longer supports PowerPC applications starting with OS X Lion has been known for over a year now. You'll need to upgrade to the latest version of Photoshop
-
I did a restore on my Imac and now it says You can’t open your current photo library using this version of iPhoto.So when I go to apps icon they want to charge me 14.99 for new Iphoto
It would help if you would answer questions and give information rather then constantlhy complaining
You do not need to purchase anything - but to help you you do have to supply the requested information
Have you installed iPhoto from the DVD that came with the computer or from the App Store?
The answer to this is critical to helping you -- please answer
WE probably also need to know exactly how you "restored" your Mac and why youneeded to restore it
LN -
After backing up my photos on a My Passport hard drive I can't open iphoto from the hard drive. It says "You can't open your current photo library using this version of iphoto. You have made changes to your photo library using a newer version of iphoto. Please quit and use the latest version of iphoto." I have done all the upgrades for iphoto. Anyone know what I'm doing wrong?
What versions of iPhoto and OS X are on each computer? You can find out by going to your iPhoto application (from the Applications folder), clicking it once to highlight it, and click cmd-i to open its information window. The version number is in the General tab.
Your version of OS X can be found from the Apple menu, then About This Mac.
The latest version of iPhoto (9.5.1) requires OS X 10.9, so if you have an older version of OS X on that computer, you will have to upgrade to Mavericks and then upgrade to the newer iPhoto.
Matt
Maybe you are looking for
-
Stacked chart help in apex 4.0
Hi All, I am working on a stacked chart.below is the query select null link,range label,count(total) value1,Dept value2 from (select '0-10' as range,count(emp_id) total,Dept from table group by Dept union all select '10-20' as range,count(emp_id) to
-
Pencast Pdf file audio doesn't work
I have to download lectures from my professor for class and she has a Pencast pdf file with audio but it does not work on my computer. I have tried opening it up on Safari and Chrome but neither have worked. I have downloaded the most recent version
-
Hope this is of some interest to someone like myself with little computer knowledge. Tried basic transfer of Sony AVCHD-IMovie-IDvd resulting in poor quality with wavy lines. I have installed VM Fusion running Windows XP, downloaded Sony PMB disc to
-
Why am I seeing very dark images in Lightroom and Photoshop?
I've just installed a new monitor - pretty much the same as the old one. CC was working fine on the old monitor but on the new one files opened in both Lightroom and Photoshop are very dark. I also see, briefly, a yellow triangle in the image when it
-
I wish the export dialog calulated the file size based on the quality, type etc. EG: If im exporting a jpeg and slide the quality slider it would be cool to know what size of file i would get before exporting. Thanks, Braden