Delete file that is used by JVM ?

Hi all,
I saw some comments on this topic but I'm still not sure what the answer..
My program creats a jar file that is used by an application server. I want to delete it in the end of the run. In order to do so I've used delete() and deleteOnExit() - non of them worked..
I read the problem is with the classLoader that keeps an open stream to the file so I removed it also... that didn't help too ...
Any ideas ? Is there a way to do it ?
Thanks,
Maya

Hi
I've run the Solar System example, and I agree it doesn't seem to have a leak.
I attach a demo I made of the graphic, which does seem to be increasing the memory usage with each time the picture is drawn.
It is essentially identical to the version in my full application (except that the booleans which determine the colour come from the VI rather than random numbers).
I am running LabView 8.5 in Windows XP, in a National Instruments PXI-1042Q with an NI-PXI-8106 Embedded Controller.
Thanks very much for youre time
Dan
Attachments:
graphics_demo.vi ‏87 KB

Similar Messages

  • I have accidentally emptied the trash and deleted files that i was trying to put back

    I have emptied the trash accidentally, deleting files that i was trying to put back! Can you help me to recover them?

    I cannot recommend any specific data recovery software because I have not been in a situation where I needed it.  I am fairly diligent having my important data backed up (two copies) so this is not a problem for me.  Do look at Time Machine (one of my two backups) since it is very easy to set up and use.  Look through these forums for situations where others have had to recover data and see if they mention specific recovery software.
    Do not take these remarks as my being condescending. I am simply stating the facts.  Try to view the price of the software as punishment for your faux pas.  We all make mistakes and I have committed my share, but not in data loss. 
    Ciao.

  • When I have video clips on my timeline, they do not play in the monitor screen. I hear the sound track but can not see the image. To test if my new files are somehow the problem, I went back and used video files that I used successfully a year ago, and th

    When I have video clips on my timeline, they do not play in the monitor screen. I hear the sound track but can not see the image. To test if my new files are somehow the problem, I went back and used video files that I used successfully a year ago, and they no longer play in the monitor window. I hear the sound track, but do not see any video. Have I changed some setting that controls video playback in the monitor window?

    Randy Ruttger
    Thanks for the follow up.
    Missing in this equation were the version of Premiere Elements that you were using and the computer operating system on which it was running. But...
    The deed is done. But.....Until now and after you went ahead and moved to version 12, we now learn what version of Premiere Elements you were using. We still do not know the computer operating system involved.
    You just said Premiere Elements 10. Premiere Elements 10 is hit by a serious known display issue if the computer uses a NVIDIA GeForce video card/graphics card. In this issue, the only remedy is to roll back the driver version to about May 2013. The description of the problem and how to do the roll back are described in one of the Announcements at the top of this forum. What video card/graphics card does your computer use?
    On another front, Adobe will be releasing a new version of Premiere Elements any day now. No one but Adobe knows the feature set for the new version. That type of information is announced at the moment of release of the new version.
    So the remedy to the problem that you presented in this thread could have been...
    1. Rolling back the NVIDIA GeForce driver version to about May 2013 if possible (Windows 8 or 8.1 64 bit, may not be possible)
    2. Move to another version of Premiere Elements (which you did)
    I offer the above for consideration so that you can review your decisions. We are pleased to learn that Premiere Elements 12/12.1 works for you.
    Please do not hesitate to ask questions and ask for clarifications, but remember that the answers are in the details.
    Best wishes,
    ATR

  • I am not able to Sync. My iPOD classic 80Gb. It tells that as iTunes can not read the contents-restore to factory settings- after restoring – it tells that it can not be restore bcause there are files that are used by other application. I am having Widows

    I am not able to Sync. My iPOD classic 80Gb. It tells that as iTunes can not read the contents-restore to factory settings- after restoring – it tells that it can not be restored bcause there are files that are used by other application. My iPOD appears in My Computer in drive H as a mass storage generick volume

    Try disabilng the Enable Disk Use option from under the iPod's Summary tab, applying the changes, and seeing if that helps.
    Otherwise, temporarily disabling any antivirus, security, firewall, or file indexing software that may be running on your system and then try restoring your iPod again.
    B-rock

  • I am looking for the image file that is used on the second monitor .

    Iam looking for the image file that is used on the second monitor when an app is in full screen mode.  not the NSTexturedFullScreenBackgroundColor.png as thats for the fullscreen background generally and not the one for the dashboard eather.
    I dont like the gray background on the second monitor that comes up when an app is in fullscreen mode and want to change it.
    Any help would be apreciated

    i typed in a load of stuff but its not there ill start again

  • I recently purchased the newest nano. I have 3 other nano's and iPad   iPhone, oh and iPod touch. When I plug in nano to my mac I get the message "iPod cannot update because it contains files that are used by another application. How can manage this?

    I recently purchased the newest nano. I have 3 other nano's and iPad   iPhone, oh and iPod touch. When I plug in nano to my mac I get the message "iPod cannot update because it contains files that are used by another application. How can manage this?

    dedonred wrote:
    "iPod cannot update because it contains files that are used by another application.
    It means that nano was used on a third-party software or synced from different computer to sync music. Does that nano show in iTunes? If yes, then restore completely. If not, then you may need to head to Apple Store and see what they can do.

  • I want to ask about deleting files that have been deleted in the trash but I want to remove it permanently from the trash can not

    I want to ask about deleting files that have been deleted in the trash but I want to remove it permanently from the trash can not, indeed I delete files that are partly contained in the application file. I want to delete files that are also quite a lot by 5 Gyga, I've tried to remove it from the normal trash remains are not removed. How should I do?

    +

  • How to create/delete files from filesystem using PL/SQL ? UTL_FILE?

    Greetings,
    I will start by explaining what i intend to do.
    I have an application made in APEX. This application will have among other purposes the managment of pdf files which will reside in the filesystem.
    I have questioned the person in charge to keep the pdf files in the database and not in the filesystem but without success.
    So the pdf files reside in the filesystem and there is a record in a database table about them. A table keeps all info about the pdf, their location , size and name, creation date etc.
    The APEX application will have a mecanism to allow the deletion of the pdf files if an administrator decides.
    So it should be possible for an administrator to schedule the deletion of all pdf files whoe creation date is older than 2008 for example
    So, how can i achieve that?
    After some research i foudn about the UTL_FILE package which seems to have it takes to perform the task in issue.
    My idea was to have a script in the operating system which runs nightly and reads a file containing all file names of the pdf to be erased.
    The file which contains the names of the pdfs to be erased will be generated by the database a few minutes before.
    If there are no pds files to be erased than the file containing the names will simply be empty
    Are there any other viable solutions out there?
    And as for opening/creating the file withn the pdf names, i use:
    UTL_FILE.FOPEN (
    location IN VARCHAR2,
    filename IN VARCHAR2,
    open_mode IN VARCHAR2,
    max_linesize IN BINARY_INTEGER)
    RETURN file_type;
    And as for writing lines (a pdf name per line ), i use;
    UTL_FILE.PUT_LINE (
    file IN FILE_TYPE,
    buffer IN VARCHAR2,
    autoflush IN BOOLEAN DEFAULT FALSE);
    is there a better solution?
    thanks all.
    -> My Homepage <-
    Edited by: Igor Carrasco on Apr 14, 2009 3:11 PM
    Edited by: Igor Carrasco on Apr 14, 2009 3:12 PM

    Greetings,
    I have read that link above, some questions still though.
    I will provide some more information.
    -First the database is in a windows server.
    The windows server has a virtual drive mounted as z:\ <-- this points to a directory in virtual machine, i can manually access/create/delete files manually,i tested.
    -Second utl_file_dir is defined as * , in t that enough to cover mounted drives? ( i can't change the init.ora and reboot the db right now :( gotta wait.. )
    Do i explicitly have to define utfl_file_dir = z: ?
    -Third haven't had the chance to test it on linux or any other operating system, assuming a virtual unit is mounted successfully and that the issues above are solved i should be able to operate on any mounted drive whatever the os, right?
    Best regards

  • Flash drive capacity is inaccurate after deleting files from it using my MacBook Pro Mid 2012.

    Hi. I'm hoping someone can help me figure out my flash drive problem.  I'm a new MacBook Pro user and have a Mid 2012 model.  I have a Patriot Supersonic 64gb flash drive that I've been using for a few years and has always worked great. I'm not sure if the use of it is relevant, but if so I use it to load movies on, which I then plug into a box (NBox V3) connected to my tv for my kids to view.  When the flash drive gets full I swap out the old movies with new ones.  I have also used it to transfer movies from my mac to pc. 
    A little while ago, after transferring files to my pc, I got a message stating my flash drive was full when I tried to add additional movies to it.  I deleted more than enough files to make room for the new file, but the available capacity never changed, no matter how many files I deleted.  I figured it wasn't compatible going back and forth between my mac and pc, but after talking to support, they said it should be fine and helped me erase the data and reformat it to FAT32. I had the same problem again, so decided to erase the data again and reformat it again to FAT32, but this time not use it in conjunction with my pc. I'm only using it with the tv box now.  I'm now running across the same problem again.  It's full.  I've transferred files from it to create new room, but the available capacity never changes. 
    I'm frustrated now b/c I'm not sure where to go from here.  I'm not sure what exactly is the problem. I had to purchase a new external hard drive (WD My Passport for Mac) in order to store files from the flash drive before deleting them b/c I didn't want to use it with my prior external hard drive (Maxtor) since it is used with the pc.  I think that may have been a waste b/c after researching possibilties again today I think it may have something to do with my MacBook Pro ports being USB3 and possibly not compatible with my flash drive, which is a few years old.  I'm really not sure though.  I could go out and buy a brand new flash drive, but I really don't want to spend any more money without really knowing what the real problem is.
    Any advice would be greatly appreciated.

    Thanks LowLuster!  With that info I have another questions if that's ok.  First, I'm sure it's formatted to fat32.  I have learned I can't transfer movies over 4gb.  I use an external hard drive for those.  The files are ones I've downloaded from YouTube in the mp4 format and are never over 1gb.  They're all mb in size. 
    I didn't realize flash drives had limited writes.  Is there any way to confirm I've reached the limit?  Both times I reformatted it I was able to add back the videos I previously had on it.  I would say there were a hundred or so. Both times I left some "growing room" on the flash drive so I could add more files.  And, both times I was able to continuing adding until I had reached the max capacity.  The problem occured after I tried deleting files to free up space.  Does this make sense with "the amount you have used it" theory?  Does it start to become buggy at that point, or does it just make writes to the drive impossible?
    Thanks

  • External Hard Drive with Time Machine, Will it Delete Files that aren't Backups?

    Hello reader,
              My concern right now that I need help with is backing up with Time Machine. I went down to an Apple Store and they formated my External Drive 1TB to work with Time Machine then I backed up my MacBook Pro and all is well. However, now I want to do this again, BUT now I have added files onto the external drive that are newer but I didn't want to do a complete backup for. Like new pictures or iMovie events. So instead of redoing a complete backup after adding like 3 big files and nothing else, I just tossed them on the Extrernal Drive no problem. Now I feel like it's been a while and I should do a full backup for all the littler files I have now. But there is now 1 "Backup" File on the external drive that "Can't be modified" or I would have just dragged the 3 quick large files into the backup that I made and been happy. But I couldn't do that so I put it in some blank space on the external drive.
    But my question for you, reader, is if I backup again, will the files that ARE NOT in the backup folder that was created from an ACTUAL backup from Time Machine be deleted?
                                                                                                                                                                                                                                     Backup Files from First Backup                      These 2 are things I added                                                                                                                                                                                             that I didn't feel I had to waste                                                                                                                                                                                     another 100GB on unchanged                                                                                                                                                                          things with another complete backup.

    TimeMachine is designed to perform one full backup when it is first connected to your computer and from then on back up only the files you add or edit. Opening the TimeMachine drive's backup folder from the Finder is basically a no-no. Access TimeMachine via the TimeMachine application.
    Assuming you frequently plug the TimeMachine drive in and let it backup and assuming the newer files are on the computer - they are being backed up and TimeMachine will be able to restore the entire drive if/when it is needed.
    Just keep these things in mind. TimeMachine runs every hour (when it is connected to your computer - so be sure to connect it at least once a day and let it do a backup) and backs up new and edited files. It is guaranteed to keep any file that is currently on your computer. If you delete a file from your computer TimeMachine may delete it if extra space is needed. The drive you use for TimeMachine really shouldn't be used for any other purpose.

  • Is it possible to retrieve a deleted file that wasn't placed into the Trash can?

    I created a new Word document and was going to submit it to a Subversion repository using the Versions application.
    However I accidentally deleted it from within Versions. Versions did not place it into the Trash Can after deleting it, and as it was a new document it is not yet under version control and so cannot be retrieved from the repository.
    Is there anyway I might be able to retrive it?
    (I've asked the same question within the Versions Google support group but posting here while/if I get a response from there. Wondering if there are any OS X specific techniques/tools I can use if Versions doesn't provide the ability).

    Did you try to open this file in Word for editing and saved the modified file under the same name?
    If that is the case then you should always use Save as to save the file under a different name and in another folder.
    If that wasn't the case then you should have kept the file unless other (cleanup or anti-virus) software has removed the file because Firefox wouldn't remove files that weren't saved to temp folder.
    There are other things that need your attention.
    Note that your System Details List shows a very old Flash plugins 9.0 r45 version.
    *Shockwave Flash 14.0 r0
    *Shockwave Flash 9.0 r45
    Such an old Shockwave Flash plugin may not be installed in the default location.
    You can find the installation path of all plugins on the <b>about:plugins</b> page.
    *http://kb.mozillazine.org/Issues_related_to_plugins#Identifying_installed_plugins
    You can check the Flash player installation folder for multiple Flash player plugins and remove older version(s) of the plugin (NPSWF32) and possibly (re)install the latest Flash player.
    *(32 bit Windows) C:\Windows\System32\Macromed\Flash\
    *(64 bit Windows) C:\Windows\SysWOW64\Macromed\Flash\

  • Deleting files that have been extracted from a zip archive

    Can we PLEASE get an update that will allow us to delete the files that were extracted from a zip archive. This is ridiculous. A quick google brings back loads of threads all over the place about people who want to be able to delete files but can't because of some daft bug. 
    How are RIM not aware of this? Do they not care?

    There is a bug in the .zip decompressor used by the native file manager. It incorrectly applies file permissions sometimes stored in the archive to the extracted files, preventing them from being deleted by us mere mortals. Once extracted, there's nothing you can do.
    <plug>
      You could, of course, use Files & Folders to extract your zip files, which doesn't suffer from this problem.
    </plug>
    Files & Folders, the unified file & cloud manager for PlayBook and BB10 with SkyDrive, SugarSync, Box, Dropbox, Google Drive, Google Docs. Free 3-day trial! - Jon Webb - Innovatology - Utrecht, Netherlands

  • How do I delete files that are no longer referenced in the catalog

    Over the years there have been a number of files (~650 raw files) that got removed from the catalog but not from my hard drive. This has mostly happened because I used the wrong keystroke combination. But now I'm stuck how can I find and remove these files?
    Best strategy so far:
    - Use Synchronize folders to find files missing from the catalog
    - Reimport with a keyword - deleteme.
    I would really rather avoid this because I really don't want to risk any chance of having these files back. Any other ideas?
    Cheers
    Mark Levison
    Mark  Levison | Agile Pain Relief  Consulting | Agile Editor @  InfoQ
    Blog | Twitter | Office: (613) 862-2538
    Recent Entries: Self  Inflicted Agile Injuries, Why  use an Agile Coach

    This method won't work, if you want to preserve a custom folder structure, but I'll mention it anyway…
    You could select all images in your current catalog and perform an "Export as Catalog…". Make sure to check "Export negative files" and "Include available previews" and select a destination folder for the export.
    That will copy your catalog, the original images with all info, adjustments etc. and the previews. Once completed open the newly exported catalog and verify that all images were successfully copied to the new location.
    If all went successfully, you can then delete your original images folder, which will get rid of all the non-referenced images in one fell swoop.

  • How can I delete files that users saves in their computers after they logoff with GPO?

    hi, I have a domain where I would like to delete all the files that a users saves when they are in their session after the users logs off, the only files that would be saved are the ones they save in the space they have in the file server, can I do this
    with a Group Policy, or is there any other way I can achieve this? Thank You

    Hi,
    Allowing the users to save the files and later deleting will result in confusion and loss of critical data. Instead you can prohibit the users from saving the files in specific location using GPO.
    Checkout the below thread on related requirement and suggesstions,
    http://community.spiceworks.com/topic/262098-do-not-allow-users-to-save-keep-files-on-their-desktop?page=1#entry-1663217
    Regards,
    Gopi
    JiJi
    Technologies

  • Deleting files that no longer exist.

    Maybe someone can help me. I know you've all seen when a music file no longer exists and it shows up in iTunes with the little .
    I just lost an external harddrive recently, requiring me to update all of my music libraries. WMP works fine in that I do a search and it AUTOMATICALLY deletes all files that don't exist. My only option, as far as I can tell, in iTunes is to delete these files from the media library manually.
    Someone please tell me there's a better way and Apple just tucked it somewhere inconspicuous. I really don't feel like deleting 10,000 music files manually.
    Or does iTunes actually suck that much?

    I've created a script that will remove all the entries with exclamation marks.
    Go to my iTunes scripts page and follow the link to download Perl. Install Perl, then download and run the script "itunesremovenotfound.pl".
    HTH,
    Rob

Maybe you are looking for

  • How do I keep Safari from shutting down unexpectedly?

    Safari has started shutting down suddenly and unexpectedly, making it impossible for me to keep Safari open for more than about 10 seconds at a time, if that.  The only differences in computer usage is that my Macbook Pro automatically connected to a

  • Can't open a class with enrollments more than 140 learners

    Hi Gurus, Could anyone please help me find the correct patch for this error? Class can't open and comes up with error when enrollments reach more than 140 learners. I examined the code being called and it shows that a function called ota_utility.get_

  • Audigy 2 windows media player help ple

    Hi, i have sound blaster Audigy 2 and when in windows media player or other media players whenever i use the search bar ( to ff/or play diff part of film etc) the sound goes really loud even though i've not touched the volume control, just the search

  • Error , while stopping Weblogic server 5.1

    Hello, Encountered the following error while stopping the bea Weblogic server 5.1 on AIX 4.3. Seeking for Valuable solution / Suggestion. Submitting shutdown command to Weblogic Server on Port 80. Failed to connect to t3://10.72.111.15:80 due to : [W

  • TS3991 can i save documents saved on word to icloud

    Can i save doucments i have created on word and save them to icloud