8820, memory leaks, don't buy one.

   In my humble opinion, this memory issue is a severe problem and the black berry OS should be "considered broke until further notice! new 8820, no pics, music, videos installed. The berry wipes itself out when used as an internet browser. The machine wipes out all history and logs, after visiting nfl.com, hour glass from hell, then poof, everything gone.

Further info..........
I suspect that the Motorola software might control physical key sensitivity.  My Droid X came with software version 604 pre-installed.  If anyone has version 604 but does not have the problem, then the mystery continues.  I now have the 2 piece holster (shell / holster combo) and it works fine.  Following is link to the problem one-piece unit :
http://www.verizonwireless.com/b2c/store/accessory?action=accessoryDetails&archetypeId=12203&page=1

Similar Messages

  • If I don't buy one to one will Apple set up my Macbook?

    I'm wanting to buy a Macbook Pro soon from the online Apple store with education discount. I'm really not good or confident with computers with any type, so I'd prefer to go to an Apple store and have them set it up. Firstly, if if i walk into the store with the new Macbook (make an appointment with a genius) will they help me transfer all my data from my old PC laptop? I know you can buy one to one, but my nearest Apple store is 150 miles away so it really won't be much use after the initial set up! Also, will they help me sync my iPhone and iPad to the mac, as I have no idea how to sync devices to a new computer without loosing everything. Thank you!

    Please make a Genius Appointment and take it in for help. I'm pretty sure they will help you out. I don't know if they would charge for that, but I also don't think you need to buy One for One coverage. However, it's easy enough to ask when you get to the store.
    If all you need to do is transfer your data files from the PC, then I suggest you make a backup of your files onto an external USB drive. Even a flash drive would be sufficient if all your files would fit on one. The Mac can read an NTFS formatted drive. It can read and write a FAT or ExFAT formatted drive. This would be easier, faster, and simpler. Plus you get 90 days of free telephone support as part of your standard warranty.

  • Osx Lion memory leak: my MacBook pro is usable only 10 minutes after boot

    Hi all,
    10 minutes after boot it works just fine, but then it slows down and take centuries to open any application. Checked with Activity monitor:
    on a boot, no user applications running: Free memory: 2,35 Gb, Wired: 459,7 Mb, Active 3 Mb, Inactive: 1,18 Gb
    In 10 minutes, idle: Free memory: 8,4 Mb, Wired: 468,1 Mb, Active 2,36 Gb, Inactive: 1,17 Gb
    Somehow all the free memory leaks to the active one, without me doing anything. I tried launching several programs to see if the memory will get adjusted accordingly, but it does not. Time machine is stopped. Tried disk repair is CMD+R mode, fixed permissions, killed most of the user processes - no success.
    I've installed Lion on top of Snow Leopard a month ago and didnt feel any problems so far... Now my MacBook pro 2,4 GHz is completely useless, finally, after 6 years of seamless work :( Thanks, Lion
    Any ideas how to deal with it?
    Thanks,

    I do not see anything like this on my system which would lead me to believe you may have a defective installation. So, my suggestion:
    Install or Reinstall Lion from Scratch
    If possible backup your files to an external drive or second internal drive.
    Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Erase the hard drive:
    Select Disk Utility from the main menu and click on the Continue button.
    After DU loads select your startup volume (usually Macintosh HD) from the left side list. Click on the Erase tab in the DU main window.
    Set the format type to Mac OS Extended (Journaled.) Click on the Erase button and wait until the process has completed.
    Quit DU and return to the main menu.
    Reinstall Lion: Select Reinstall Lion and click on the Install button.
    Note: You can also re-download the Lion installer by opening the App Store application. Hold down the OPTION key and click on the Purchases icon in the toolbar. You should now see an active Install button to the right of your Lion purchase entry. There are situations in which this will not work. For example, if you are already booted into the Lion you originally purchased with your Apple ID or if an instance of the Lion installer is located anywhere on your computer.

  • I need a new power cord for my Mac book Pro its the T type mag connector. I don't need a Tech just a new cord. How do I buy one. The closest Aplle store is 75 miles away and I do not drive.

    I need a new power cord for my Mac book Pro its the T type mag connector. I don't need a Tech just a new cord. How do I buy one. The closest Aplle store is 75 miles away and I do not drive.

    Are you in the US? Order one from here:  http://store.apple.com/us/browse/home/shop_mac/mac_accessories/power?mco=MTM3NjU xNDg
    Or check out Best Buy.

  • Firefox has a memory leak and I need to update it, but I want to keep 3.5 because I don't like how the newest version of Firefox is set up.

    My computer is running low on RAM, and when I look at what processes are using the most memory, firefox is the number one using between 28,000 to 93,000k, so I'm guessing that it has a memory leak.
    And because of that memory leak I have to update firefox, however I really dislike the newest version of firefox and I'd prefer to stick with the version I have, which is 3.5.

    Often the memory problems are not just from Firefox in isolation, but partly relating to all the extensions available for it and then the videos and animations it runs on media rich sites.
    The first thing to do is to upgrade to firefox 3.6 which is at least a supported version (Maybe not for much longer)
    * see [[updating firefox]]
    Next version after 3.6 is 4, you should avoid that, it did have some memory problems, that were worse than 3,6 and firefox 4 is no longer secure or supported.
    The techies at Firefox have been working on memory problems recently and have made many improvements, but some of these improvements are only seen in the trial versions of Firefox.
    I would in fact suggest you upgrade to Firefox 5 the current release version (soon to be replaced with Firefox 6)
    I am able to run Firefox v3.6 to v8 on legacy XPs with less than 1GB RAM. Firefox in itself is not necessarily very demanding in terms of RAM. I am not sure what the figures are you are quoting, or whether they are high. ( Note 1Gb is in the order of 1 000 000 k )
    As for not liking the set-up of new versions of Firefox, there is quite abit that can be changed, maybe you would be able to configure it more to your liking with little effort.

  • TS1409 What if I don't have the Apple Component AV Cable or Apple Composite AV Cable to connect my iPod to? Do I have to buy one to watch videos on my iPod?

    What if I don't have the Apple Component AV Cable or Apple Composite AV Cable to connect my iPod to? Do I have to buy one to watch videos on my iPod?

    Hi there,
    I am assuming you have an ipod nano 6th gen (the small one with a touch screen)
    unfortunately, the ipod nano 6 gen can not play videos whatsoever unless you hack it so even with a cable it does not work.
    I hope this helps cus im new
    (if other generation ipod nano, just reply and i will help again )

  • I have files on iomega zip discs from 10 years ago, but no longer have a zip drive.  I can buy one second hand at a reasonable price, but I don't know if it would be compatible with my MacBook pro.

    I have files on iomega zip discs from 10 years ago, but no longer have a zip drive.  I can buy one second hand at a reasonable price, but I don't know if it would be compatible with my MacBook pro.

    Google is wonderful: https://www.google.com/#hl=en&output=search&sclient=psy-ab&q=iomega+zip+drive+ma c+os+x&oq=iomega+zip+drive+mac&aq=1v&aqi=g1g-v3&aql=&gs_l=hp.1.1.0j0i15l3.0l0l1l 1521l0l0l0l0l0l0l0l0ll0l0.frgbld.&pbx=1&bav=on.2,or.r_gc.r_pw.r_qf.,cf.osb&fp=14 034e73db4ae90b&biw=1626&bih=891

  • I didn't have my credit card on my itouch for about a day and I put my card back on to buy one song and my mom checked my credit card account and now I have no money because I was charged over $20 for something I don't know about It say oneinfiniteloop.

    I didn't have my credit card on my itouch and i put it on to buy one song and then took off the credit card. My mom checked my bank account and I was charged over $20 for something we can't find. So I don't know if someone got into my account or what but I would like my money back.

    Hello jumanjet,
    Thanks for the question, and welcome to Apple Support Communities.
    I understand you are having issues adding payment information to your account.
    If your account information does not match your credit card, you may get a message stating "The credit card was declined."
    To expand on the above, your billing name or address may not match the address listed on your credit card statement. Any discrepancy in punctuation, abbreviation, or capitalization can cause errors, which might prevent you from purchasing from the iTunes Store. If you moved, or if your zip code changed recently, ask your credit card company to make sure their records are up to date and match exactly what you are entering as your billing information.
    For more information, see the following helpful resources:
    iTunes Store: How iTunes Store purchases are billed
    http://support.apple.com/kb/HT5582
    iTunes Store: Changing account information
    http://support.apple.com/kb/HT1918
    iTunes Store: My credit card's security code or zip code does not match my bank's records
    http://support.apple.com/kb/TS1646
    Thanks,
    Matt M.

  • I don't have a credit card to enter in too App Store . I never had to have one befor to buy aps befor so why start it now it's so stupid for people who don't have one or don't want to put there private details on here

    I don't have a credit card to enter in too App Store . I never had to have one befor to buy aps befor so why start it now it's so stupid for people who don't have one or don't want to put there private details on here

    How to Get Apps From the App Store Without a Credit Card
    http://ipadhelp.com/ipad-help/how-to-get-free-apps-from-the-app-store-without-a- credit-card/
    Creating an iTunes Store, App Store, iBookstore, and Mac App Store account without a credit card
    http://support.apple.com/kb/ht2534
    Why can’t I select None when I edit my payment information?
    http://support.apple.com/kb/ts5366
    If None is not available - On your computer launch iTunes and click “iTunes Store” in the left navigation pane. Click the “down arrow” next to your name at the top right side of the page and click “Account.” Enter your username and password and click “View Account” to log into your account information. Next to your Payment Type, click “Edit.” Select the “None” button and click “Done.” Confirm that your card has been removed by returning to the Apple account information screen. Under Payment Type, it should say that there is no credit card on file.
    iTunes Store: Changing your payment information
    http://support.apple.com/kb/HT1918
    iTunes Store Accepted Forms of Payment
    http://support.apple.com/kb/HT5552
     Cheers, Tom

  • Plugin-container.exe takes over and uses 100% of my CPU locking me out and leaving my PC non-functioning. Is this a bug, or a memory leak, in the Firefox software? Can anything be done to fix this problem?

    In looking at Windows Task Manager I found that plugin-container.exe was taking over 100% of my CPU and my system was frozen. Is this a memory leak or other bug?

    Thank you! I have been having problems with Adobe Flash since downloading the new 11.1 version. I will download it again and reinstall it, hopefully that will correct the problem.

  • Applescript Image Events appears to have memory leak (or I don't know what I am doing)

    Using Image Events to create images and thumbnails for a website. The following code results in very large memory leaks in Image Event process. I have documented results of test runs in the comments.
    The leak (or poor coding on my part) results in a total system halt if I attempt to process more than about 400 images at a time. Basically, I run out ot physical memory. I am running a new model 13" MBP with 8GM RAM.  I have to manually stop Image Events to reclaim the memory (or reboot of course).
    Any help/suggestions would be appreciated.
    (* test memory leak in Image Events *)
              tests with 58 photos selected in iPhoto
              5.7 MB left in Image Events after run with only open and close
              22.0 MB left in Image Events after run with open, save and close
              45.9 MB left in Image Events after run with open, scale, save and close
              A run with 382 photos selected used OVER 3.8 GB (gigabytes) and the
              mac ran out of physical memory so I had to stop the test.
    tell application "Finder"
              set imageFolder to folder "test" of home as alias
    end tell
    tell application "iPhoto"
              set currPhotoList to the selection
              repeat with currPhoto in currPhotoList
                        log name of currPhoto as string
                        set theImagePath to image path of currPhoto
                        tell application "Image Events"
      launch
                                  set theImage to open theImagePath
      scale theImage to size 128
      save theImage in imageFolder as JPEG with icon
      close theImage
                        end tell
              end repeat
    end tell
    --- end of code example

    Does the following code do any difference? Most likely no I guess… but better try than nothing.
    tell application "Finder"
        set imageFolder to folder "test" of home as text -- instead of “as alias” (see theTargetPath below)
    end tell
    set theImagePaths to {}
    set theImagePathsRef to a reference to theImagePaths -- faster with big lists
    tell application "iPhoto"
        set currPhotoList to the selection
        repeat with currPhoto in currPhotoList
            log name of currPhoto as string
            get POSIX file (image path of currPhoto) as alias -- faster ?
            copy result to the end of theImagePathsRef
        end repeat
    end tell
    tell application "Image Events"
        launch
        repeat with theImagePath in theImagePaths
            set theImage to open theImagePath
            scale theImage to size 128
            set theTargetPath to (imageFolder & name of theImagePath)
            save theImage in theTargetPath as JPEG with icon
            close theImage
        end repeat
    end tell

  • Memory leaks in Lion?

    I have a 2008 21-inch iMac, and a 2010 MacBook Pro, both with 4 GB RAM, running OS X Lion 10.7.3. Ever since I installed Lion, I've had this problem of available memory dwindling to almost nothing (10-20 MB) after a day or so of usage. Last night I went to bed and the MacBook Pro had 400 MB available (according to Activity Monitor) and when I woke up this morning it was nearly frozen with only 10 MB available.
    I'm not an extreme techie but I've been working in the IT world for over 30 years, including 3 years with Apple, and in my experience this situation is called a Memory Leak. If it were just one of my systems I would suspect something local, but they both behave the same way. (My partner's machine does the same thing.) I've installed the 3rd-party app Memory Freer, which frees up 6-800 GB each time I run it. But as time goes on the memory fills back up again more quickly, and finally I have to reboot.
    Checking Activity Monitor, it's not just one app that takes up memory - they all seem to grow over time. (Mail, iPhoto, iTunes, Word, Chrome, etc.) Chrome seems to be the worst offender, with a plethora of Worker and Renderer processes grabbing 10-80 MBs for each open window - and I often leave 10-15 open at any given time. But all apps' memory usage grows over time, even if I haven't accessed them - witness last night's spontaneous bloat on my MacBook.
    I've read a couple of other threads on Memory Leaks, but most point to a single app or just suggest Memory Freer. Does Apple know it's got a major league problem here? Are they doing anything about it?
    One other point - I get the spinning ball on a lot of tasks, most often with Word and and Excel re-calc, which can last 3-5 seconds, and is another indicator of system overload, even when I've cleared the memory with MemoryFreer and there is supposedly several hundred GB of RAM available. This issue lessens after reboot, but is almost constant with Microsoft Office apps.

    LKHill wrote:
    I tried the kextstat message and the response was:
    Index Refs Address            Size       Wired      Name (Version) <Linked Against>
    which apparently indicates that there are no kernel extensions running.
    That means you don't hve any non-Apple kernel extension. There are still lots of other possibilities for third party interference. Are you running any kind of anti-virus or clean-up software? Those aren't needed and will likely just cause problems.
    I understand what you're all saying about unused memory going to waste, but for MacOS to operate "correctly" it would need to free up previously-allocated memory as it is needed by other or new applications, and it doesn't seem to be doing that. It's just acting like it's out of memory, with all processes slowing to a crawl.
    "Free"? You are still looking at memory. If all processes are slowing to a crawl, then that is a problem worth investigating. If you can't get past the assumption that memory is the cause, you'll never figure it out.
    I did check CPU utilization as well, and it's rarely over 25%. However, on one of my systems, Page Outs were about equal to Page Ins, substantially over the 10% "healthy" threshold that was suggested. So I upgraded to 10.7.4, and Page Outs are down in the acceptable range. The overnight bloat also seems to have gone away, but each app still creeps up with time, albeit more slowly now.
    I too would like to return to the days of 10.6 where I didn't reboot for days - or weeks - and Microsoft apps didn't display spinning wheels with each reactivation task or any simple calculation or text move.
    So, in other words, you fixed the memory problem but the performance issues remain. That tells me that it isn't a memory problem.
    Also, because you seem unwilling to look past memory, I'm unwilling to accept your CPU usage claims. Sometimes it takes several attempts before I can get people to setup Activity Monitor correctly to see exactly what is going on with their systems. That is step 1. We haven't made it to step 1 yet.
    It seems clear that Lion's new process model is at least partially to blame here. With two completely different systems running (work MacBook, home iMac) plus my work partner's MacBook experiencing all the same symptoms, it's not likely my own setup. So I've also ordered an upgrade to 8 GB RAM.
    Here's the rub. If low memory isn't the cause, buying more won't help.
    I guess I'm just not accustomed to hating a new MacOS release, but between these performance problems and the inexplicable need to Duplicate TextEdit documents in order to do a Save-As (yeah, I know, Versioning is a great idea, blah blah - please get rid of it anyway) I really, really hate Lion.
    It's just an operating system and doesn't care how you feel. I strongly suspect that feeling is more the explanation of any issues you have. I hate Linux. I really do. Therefore, I don't use it. While I would love to help you figure out what is wrong with your machine, that will only work if you meet me halfway and help look. If you have already identified the cause, then you don't need my help. The problem is Lion. Erase your hard drive and the problem will be gone.

  • Memory Leak? (Update)

    Thanks for all the responses for this problem. Here is what I've come
    up with so far. I believe I have found the culprit.
    1) First, I used the LabVIEW VI profiler with memory tracking enabled.
    This didn't show what VI was hogging the memory, so it didn't help. It
    reported only 10M of memory was being used, when Windows NT reported
    110M in use by LabVIEW.
    2) VI references had been mentioned as the possible culprit if the
    references had not been closed. I then opened a VI reference at the
    beginning of the program, used these references throughout the loop, and
    then closed them at the end of the loop. Result: still had a memory
    leak.
    3) After some troubleshooting, I started deleting some sub-VIs out of
    my program to see when
    the memory was freed. I thought I could isolate
    which VI was hogging the memory. This seemed to have worked, because
    I've done it twice, deleting different VIs up to a point, and when I
    delete one of them out of the diagram, the memory is freed. This is
    what I'll explain below.
    Every iteration of the loop, the front panel is converted to a .png file
    and saved to the drive for output across the network to any browser
    which has connected. Using the LabVIEW/vi.lib/utility/printvi.llb/Get
    Panel Image.VI, the front panel can be changed into a .png format. The
    next step is where the problem lies. A Java applet is looking for a png
    file to download to a browser when a request is made. Therefore, the
    panel image which has just been made needs to be saved to a file. The
    Graphics & Sound -> Graphics Formats -> Write PNG file.VI is used for
    this. This is the VI which is causing the problem. Upon looking at the
    VI, it just calls a CIN. Therefore, I'm not sure how to find out why it
    is
    hogging the memory. If I delete this VI, and I don't save the front
    panel to a png file (but I do convert it to png format), I don't have
    the memory leak.
    Any ideas?
    Mark
    Sent via Deja.com http://www.deja.com/
    Before you buy.

    I wish I could update to LV 6i, but I can't now. I'm stuck with 5.1.1
    for now. I don't know how I could "legally" get the .dll and png write
    VI from 6.
    Mark
    In article <[email protected]>,
    "news.t-online.de" wrote:
    > Hi Mark,
    >
    > you are right. It looks like lvpng.dll is causing the problem.
    >
    > Are you able to switch to LabVIEW6? The lvpng.dll has been changed
    > and I didn't see the memory leak here. You can also try to use only
    the
    > Write PNG File.VI and/or lvpng.dll shipped with labview 6 instead of
    > porting the complete application to labview 6.
    >
    > Martin
    >
    > --
    > Martin Henz Systemtechnik
    > Dipl. Ing. (FH) Martin Henz
    > Walchensee Str. 3
    > 70378 Stuttgart
    > Tel. ++49-711-5302605
    > Fax ++49-711-5058649
    > http://www.mhst.de
    > schrieb im Newsbeitrag
    news:[email protected]...
    > > Thanks for all the responses for this problem. Here is what I've
    come
    > > up with so far. I believe I have found the culprit.
    > >
    > > 1) First, I used the LabVIEW VI profiler with memory tracking
    enabled.
    > > This didn't show what VI was hogging the memory, so it didn't help.
    It
    > > reported only 10M of memory was being used, when Windows NT reported
    > > 110M in use by LabVIEW.
    > >
    > > 2) VI references had been mentioned as the possible culprit if the
    > > references had not been closed. I then opened a VI reference at the
    > > beginning of the program, used these references throughout the loop,
    and
    > > then closed them at the end of the loop. Result: still had a memory
    > > leak.
    > >
    > > 3) After some troubleshooting, I started deleting some sub-VIs out
    of
    > > my program to see when the memory was freed. I thought I could
    isolate
    > > which VI was hogging the memory. This seemed to have worked,
    because
    > > I've done it twice, deleting different VIs up to a point, and when I
    > > delete one of them out of the diagram, the memory is freed. This is
    > > what I'll explain below.
    > >
    > > Every iteration of the loop, the front panel is converted to a .png
    file
    > > and saved to the drive for output across the network to any browser
    > > which has connected. Using the
    LabVIEW/vi.lib/utility/printvi.llb/Get
    > > Panel Image.VI, the front panel can be changed into a .png format.
    The
    > > next step is where the problem lies. A Java applet is looking for a
    png
    > > file to download to a browser when a request is made. Therefore,
    the
    > > panel image which has just been made needs to be saved to a file.
    The
    > > Graphics & Sound -> Graphics Formats -> Write PNG file.VI is used
    for
    > > this. This is the VI which is causing the problem. Upon looking at
    the
    > > VI, it just calls a CIN. Therefore, I'm not sure how to find out
    why it
    > > is hogging the memory. If I delete this VI, and I don't save the
    front
    > > panel to a png file (but I do convert it to png format), I don't
    have
    > > the memory leak.
    > >
    > > Any ideas?
    > >
    > > Mark
    > >
    > >
    > > Sent via Deja.com http://www.deja.com/
    > > Before you buy.
    >
    >
    Sent via Deja.com http://www.deja.com/
    Before you buy.

  • Solution for addons with memory leaks needed! (check / mark them)

    The Problem with Firefox is that there are a vary of plugins from other developers, but it could not be that users have to live with growing memory usage or memory leaks by these addons. This gives also Firefox itself a bad impression and I think there should be a solution to stop the trend because as a user I can not always identify what's the problem now and why the firefox-process gives no memory free but it makes firefox partially unusable if I have to open more than a few tabs.
    In my opinion also popular extensions that are used by a lot of people still have memory leaks or even the addon-developer does not know that his addon has one.
    Is there no possibility that firefox helps, that addons can't produce so many memory leaks or otherwise Mark them in the Addon repository if they have leaks or memory problems?!

    Being a rookie, I thought memory leaks weren't
    something that java developers had to worry about.No managing memory is what you don't have to worry about.
    That doesn't mean that your code still can't have memory leaks in it.
    Now I'm starting to get java.lang.outOfMemory
    Exceptions. My application just keeps eating up more
    more ram until.... kaboom!The garbage collector can only clean up stuff that is no longer being 'used'. If you hold references to stuff that you no longer use, then you are creating a leak.
    >
    I think I get the ram back when the java app exits.
    So I don't know, if this is technically a memory leak
    or not. But It's a problem; Is there some way to
    explicitly call the java garbage collector and then
    recover from a OutOfMemoryException?
    As I pointed out above, the garbage collector collects garbage. It isn't garbage until there are no more references. Leaks are caused by holding onto references even though they are no longer needed. The GC can't do anything about that.
    I would appreciate any responce. (even if it's just a
    one liner)
    Since it sounds like you are creating a professional application I would suggest that you buy either JProbe and/or OptimizeIt and run your app through them. They will find memory leaks. And as an added benifit will also allow you to determine the bottlenecks in your application.

  • How do I release memory when done with a large Image?

    I've got a sample program here. Enter a filename of a .jpg file, click the button and it will load and display a thumbnail of it. However memory is not released so repeatedly clicking the button will let you watch the memory use grow and grow. What should be done in the code to release the large original image once the thumbnail is obtained? Here's the class:
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.image.*;
    import java.io.*;
    import java.util.Iterator;
    import javax.imageio.*;
    import javax.imageio.stream.*;
    import javax.swing.*;
    public class ImageMemoryLeak extends JFrame implements ActionListener {
         private JLabel thumbnail = null;
         private JTextField tf = null;
         private JButton button = null;
         public static void main(String[] args) {
              ImageMemoryLeak leaker = new ImageMemoryLeak();
              try { UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); }
              catch (Exception ex) { }
              leaker.showDialog();
         private void showDialog() {
              setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              setBounds(100,100,200,200);
              setBackground(new Color(255,255,255));
              Container cont = getContentPane();
              cont.setBackground(Color.lightGray);
              cont.setLayout(new FlowLayout());
              thumbnail = new JLabel("thumbnail here");      
              cont.add(thumbnail);
              tf = new JTextField("type filename here");     
              cont.add(tf);
              button = new JButton("Load Image");
              button.addActionListener(this);
              cont.add(button);
              pack();
              setVisible(true);
         public void actionPerformed(ActionEvent e) {
              if (e.getSource() == button) {
                   String fname = tf.getText();
                   File f = new File(fname);
                   if (f.exists()) {                    
                        try {
                             // This is where a file is loaded and thumbnail created
                             Iterator<ImageReader> iter = ImageIO.getImageReadersByFormatName("jpeg");
                             ImageReader imgrdr = iter.next();
                             ImageInputStream iis = ImageIO.createImageInputStream(f);     
                             imgrdr.setInput(iis, true);
                             ImageReadParam param = imgrdr.getDefaultReadParam();
                             BufferedImage fullSizeImage = imgrdr.read(0, param);
                             imgrdr.dispose();     // is this enough?     
                             iis.close();               
                             int thWidth = 150;
                             int thHeight = 150;
                             int w = fullSizeImage.getWidth(null);
                             int h = fullSizeImage.getHeight(null);
                             double ratio = (double)w/(double)h;
                             if (w>h) thHeight = (int)((double)thHeight /ratio);
                             else if (w<h) thWidth = (int)((double)thWidth * ratio);
                             BufferedImage thumbImage = new BufferedImage(thWidth, thHeight, BufferedImage.TYPE_INT_RGB);
                             Graphics2D graphics2D = thumbImage.createGraphics();
                             graphics2D.setRenderingHint(RenderingHints.KEY_INTERPOLATION,
                             RenderingHints.VALUE_INTERPOLATION_BILINEAR);
                             graphics2D.drawImage(fullSizeImage, 0, 0, thWidth, thHeight, null);
                             // done with fullSizeImage now - how to release it though?
                             fullSizeImage.flush();     // doesn't seem to do the trick
                             ImageIcon oldicon = (ImageIcon)thumbnail.getIcon();
                             if (oldicon != null) oldicon.getImage().flush();
                             ImageIcon icon = new ImageIcon(thumbImage);
                             thumbnail.setIcon(icon);
                             thumbnail.setText("");
                             pack();
                        } catch (IOException e1) {
                             e1.printStackTrace();
                   else {
                        thumbnail.setText("file not found");
    }

    lecisco wrote:
    AndrewThompson64 wrote:
    lecisco wrote:
    I don't mind having GC getting to it but it's not doing so now. .. Isn't it? GC is only called when the JRE feels it is necessary. Definitive evidence of a memory leak is generally revealed by an OutOfMemoryError. Does the code throw OOMEs?Excellent point. I tried loading over and over to force an OOME. I found that after the memory footprint grew to about 750mb, it reset down to about 130mb again, so it seems that GC does eventually kick in. Perhaps what I have is fine.
    That question brings me to the code sample. Typing an image file name in a text field is soooo 1980s. It would take a long time and much hard work on the part of the person testing it, in order to get to an OOME.In my actual application I'm using drag-and-drop to specify the image. The text field was just to simplify the code sample. How you get the file location is not relevant for the question - it's how the resources are released. If you're saying my code is fine regarding and shouldn't be holding onto any resources, that's great. I'm not saying that. So far I've not looked closely at the code, and am no expert on resource caching in any case.
    ..I am looking to confirm I'm following best practices regarding image resources.Good show. There is too much rubbish code out there.
    ..With the code sample, you just have to specify one .jpg file and repeatedly click the button to see the memory grow, so there's no burden to type a new file each time.Oh right, my bad. I had presumed it required a different image each time. Still (grumbles) a file chooser to select the image file would not have gone astray - for us lazy types. ;)

Maybe you are looking for