Does flush() safely write to disk on Windows?

From problems with a 'C' application on Windows 2000 & XP
that lost file data after a power failure even though it had called
flush() lots of time. We discovered that Microsoft requires a 'c'
flag on fopen() in order for a flush() call to to actually cause a write to disk.
This is non-ANSI behaviour and I wondered whether Sun's JVM
on Windows actually opened files using this flag on fopen().
From trials using W2K & FAT32 with JDK 1.3.0 (Java 2 Standard Edition
(build 1.3.0-C) the answer appears to be no, however, using NTFS the
data is still present after a power fauilure.
Does anyone know whether the Windows JVMs do pass this 'c' flag
to fopen() or use another method to ensure that flush() actually does
what it is supposed to. Any information would be appreciated. If
a change has been made in later VM's I'd like to know the version
it was fixed in.
Thanks
Steve

I'm sorry I'm not giving any juke dollars for a one word answer!
Eventually after searching the bug database on this site I found
that bug 4266941 'in progress, bug' has documented the problem
of a File flush() call not doing what you would expect. In case
anyone is interested the documented workaround seems to work for us.
That is File.flush() followed by FileDescriptor.sync().
I was a little surprised that (for our application) this major
flaw with flush() has received so little mention anywhere.
Regards
Steve

Similar Messages

  • Help - iPod does not show up in iTunes or as disk in Windows Explorer

    Would someone PLEASE tell me how to get my iPod to show up in iTunes or as disk in Windows Explorer?
    According to our PC XP computers, we do not have an ipod and it won't charge when plugged into USB. It worked fine for 10 months until this morning (10/26/06). We have ruled out bad USB drive by using flash drive on that USB and it worked fine. Reseting ipod does not work (ipod does not respond to reset command hold toggle then hold menu + play for up to 10 sec). Reseting ipod within ipod menu does nothing. ANY suggestions would be GREATLY appreciated!
    Thanks.

    I have the same problem with my brand new 2 GB. I have reloaded software, gone through the "5 R's", tried the ipod on my PC and on my laptop -- neither computer recognizes or charges the ipod. Any info greatly appreciated.

  • TS1369 iPhone does not appear in iTunes and also does not appear as a disk drive in My Computer (Windows XP)

    iPod does not appear in iTunes and also does not appear as a disk drive in My Computer (Windows XP)

    iPod or iPhone?
    iPhone and iPod Touch will never show as a disk drive.
    If it's an iPhone, this might help:  iOS device not detected in Windows

  • On windows, while cloning error The destination file does not have write pe

    Hi,
    I am cloning in windows 2003, 11.5.10.2. After copying files while runnig
    adcfgclone.pl dbTier it is hanging at 13% and throwing error "The Destination file does not have write permissions ......\9.2.0\OPatch\perl_modules\Command.pm"
    i am not using MKS perl.
    i changed directory to $ORACLE_HOME\Apache\perl\5.*\MS*\
    perl .....\appsutil\clone\bin\adcfgclone.pl dbTierPlease any pointers will be helpful.
    Regards
    Taher

    Hi Taher;
    Please check:
    perl setting windows:
    Re: cloning oracle applications 11i on windows
    Also check:
    Setting the Perl Environment PERL5LIB [ID 395294.1]
    Common Perl Setup Issues and Solutions for E-Business Suite 11i [ID 404055.1]
    Regard
    Helios

  • Is content viewed during "private browsing" forensically extractable? e.g does it still write the content to the disk and can it be recovered?

    is content viewed during "private browsing" forensically extractable? e.g does it still write the content to the disk and can it be recovered?
    If a forensic investigator was to do forensics on my disk after i browsed content under private browsing, could it be recovered
    There is no intention to use this for illegall purposes, i just wondered how to private is "private browsing"

    Private browsing basically prevents any data from being stored in your Profile folder. [http://support.mozilla.com/en-US/kb/Private%20Browsing This] article provides more details.
    Please note that cookies '''are '''created during a private browsing session. However, they are deleted once the session is ended or when you exit Firefox application.
    Also note that other applications on your computer might be tracking which sites you visit (firewall, antivirus etc). They will still be able to collect your browsing related data even if you have activated private browsing in Firefox.

  • The storage where the virtual hard disk is located does not support virtual hard disk sharing. (Hyper-v / Windows 10 Enterprise Tech. Preview)

    I am attempting to create new virtual machines in Hyper-V on Windows 10 Enterprise Tech. Preview and I am continually getting the error "The storage where the virtual hard disk is located does not support virtual hard disk sharing.". I am not trying
    to setup a shared VM or VHD, just a basic VHD.
    Does anyone have any suggestions on how to resolve this issue?

    This issue is listed in the release notes and currently there is no fix on our side. Have to wait for the next build.
    "Known issues in Build 10049
    If you have Virtual Machines hosted on your PC running Windows 10, you will want to move to the Slow ring and wait for the next build as this build breaks the ability to run VMs. "
    The statement is miss-quoted. It was about Hyper -V. An update KB3053898
    was released to fix that
    See the blog
    Here :
    excerpt........notice the statement has been crossed off in the blog.
    UPDATE: You cannot enable Hyper-V on this build. If you have Hyper-V already enabled and you upgrade to this build, Hyper-V will continue to work. <del>If you have Virtual Machines hosted in Hyper-V on your PC running Windows 10, you will want to move
    to the Slow ring and wait for the next build as this build breaks the ability to run VMs.</del>

  • Can't Write to Disk Error (-69)

    I have windows XP, and an iPod 30gb photo. OUt of the blue it stopped copying files to the iPod and gives the message cannot write to disk with the error (-69).
    I have reinstalled both the iPod software and itunes multiple times.
    I formatted my HD and reinstalled windows
    The iPod works on other computers .
    Does anyone know what i should do.
    I have all my music on a USB drive that works fine, and it has been that way for months. I did not install any new software.
    Dell tells me it's the iPod and Apple tells me it's the Dell
    I would appreciate any help
    -dave
    [email protected]

    After formatting my HD, restarting windows, spending hours on dell and apple tech support, buying a firewire card, i figure it out.
    I had a bad file in my library (it was a podcast).
    once i deleted it, everything was fine.
    see if you can see at what song you get that error and delete that song.. good luck.

  • Want to use a Lacie External Hard Disk with Windows and Mac? Can I?...

    Hi, I've just purchased a Lacie Extreme D2 external hard disk, I'm looking to use it to move film clips from my Mac G5 to my Sony Vaio laptop. I'll connect the Mac using Firewire 1 and the PC using USB 1.
    I understand there is an issue with setting the compaitibility of the hard disk to either Mac or Windows format but I'm wondering if I can set it to both, so it's possible to transfer these files? The hard disk is Windows and Mac compatible but does it have to be partitioned a certain way?
    Any help is much appreciated.
    Thanks,
    Alex

    Format the drive as FAT or use the Mac format (HFS Extended) and install MacDrive on the PC.

  • "Can't Read Or Write to disk" Video Won't Transfer To Ipod

    I have transfered videos to my ipod in the past but I have two tv shows from the Itunes story that won't transfer.
    They are in the correct mpeg 4 whatever format. My itunes is the most resent version, but for some reason I keep getting the same error.
    "Cannot Read Or Write To Disk".
    HELP??!!
      Windows XP  

    I've got this problem too. My 5g iPod 30gig syncs after about 3 minutes with iTunes then after loading songs and videos after 10 minutes i get the same message your getting - "Can't Read Or Write to disk". I think theres some kind of USB2 conflict or something. All my other USB devices work fine. All my drivers and software is up-to-date.

  • Ipod will sync up once then says cannot read or write to disk.

    Is this normal? The IPOD shows up in Itunes after the first sync but when I go and try to update the ipod again it says it cannot read or write to disk. Tech support says this is normal but it does not make any sense as the IPOD still shows up in Itunes.

    the IPOd will sync up when I fiorst plug it in. the problem is when it is finished, Itunes says ipod update complete you can disconnect. I leave it connected, and if I try to update the ipod again after I download something or whatever into Itunes it comes back with the cannot read from or write to disk. I can unplug it and plug it back in and it work sfine. There is something with the software I guess that is not staying connected with the hardware after the first sync.

  • Music Downloads - unable to read or write to disk.

    Hi, I'm new to iPods, and when I try to download music
    I get the message Unable to update iPod, unable to read / write to disk....
    Originally I had no problems now unable to download more than one song at a time, and only the manually... it's taking ages...
    Does anyone have any ideas? I've restored, reset everything and downloaded the latest software....

    Hi,
    Unless you are using OCR (optical character recognition) software when doing the scan, the result of scanning a document is only an image, a picture of the document. Since you only have a picture of the document at this point, the only thing that you can do with it in Word is to insert the image into the document. As an image, you won't be able to edit or search the text that appears in the image. You need to run OCR software to examine the image and convert the images of the characters into editable text. If you are already using OCR software, reply back and let me know which application you are using, and I'll try to help you further.
    Hope this helps,
    Ken

  • "Can't read from or write to disk...." iPod error

    I recently switched from my old PowerBook G4 (running Leopard 10.5.2) to a newer MacBook Pro (running Leopard 10.5.5). I migrated my account and permissions from the PB to the MacBook Pro, and everything is working just fine except for iTunes (version 8.0.2) and my older 160 GB iPod Classic (running 1.1.2).
    NOTE: THE VERSION OF iTunes ON THE PB WAS VERSION 8.0.1.
    Since the migration, I've been getting this "can't read from or write to disk..." error whenever I attempt to sync my iPod to iTunes. Previously, I'd never had any problems. I have tried to restore the iPod using iTunes - didn't work. I have tried different USB to dock connector cables - didn't work. I have even tried completely re-formatting the iPod using Disk Utility - didn't work. Everytime I begin syncing the iPod, it starts out just fine. At varying degrees of completion it ALWAYS fails with the same error.
    I had an idea. I tried syncing the iPod to a different computer - my G5 4 x 2.5 GHz (running Leopard 10.5.5) with iTunes (version 8.0.2). I still got the same error. I haven't dropped it, submerged it in water or done anything to it that would otherwise compromise its functionality. So, I'm at a loss.
    PLEASE! PLEASE! PLEASE!
    Does anyone have any other suggestions? - OTHER THAN BUYING A NEW IPOD

    UPDATE:
    OK, after the visit to my Genius Bar; I thought of a variable that wasn't previously considered. Because their transfer of media was successful without the slightest hitch, I had to figure out something else.
    Everytime I had tried to sync the iPod with my various Macs, I was using the same process. Since all of my music and movies "live" on an external 500 GB drive, I was attempting to use that same drive whenever I would try to sync. It occurred to me that possibly the failing was in the drive and not the iPod.
    I have part of that library on a Power Mac G4 867 DP (running 10.4.9). I updated the iTunes on that machine to 8.0.2, connected the iPod and made a successful transfer of a large amount of media!
    My only problem now is that I can't figure out how to get the 500 GB drive to stop hanging on transfer and update of my Genius information. The drive just completely stalls and I get the spinning wheel from iTunes and the application ceases to respond. When I force quit iTunes, the drive recovers fine. I don't have any problems transferring data to and from it and Disk Utility reports that the drive is healthy.
    I have tried re-installing iTunes on all affected Macs - didn't help. I believe my problem may exist in the iTunes Library file or in the associated .xml document. My only concern is that if I do a completely fresh install of iTunes where those files would be re-created, I would lose all of my play and ratings data as well as the information about when my files were added. On a related note, when playing the music from this drive through iTunes. I don't have any issues at all.
    ANY SUGGESTIONS?

  • Ntoskrnl.exe 100% disk usage windows 8.0 and 8.1

    This is a bug report. I hope Microsoft will take it seriously as it took me a whole day and much stress to track it down. Basically my problem was the same as this: http://slopjong.de/2013/04/23/extremely-high-disk-activity-with-windows-8-and-how-to-fix-it/
    However in the graphic on this site it appears to show that Virtualbox is the culprit. However this is unlikely to be the case, as the author of the site fixed his problem by following his own advice. This is an extremely common problem as this Google search
    indicates:
    https://www.google.co.uk/#q=ntoskrnl.exe+100+disk+usage+windows+8
    To attempt to address my own problem first I disabled all non-microsoft services in Windows 8.1 professional. When this had no effect on the problem, I then disabled all non-essential Microsoft services. In turn. when this has no effect I disabled all user
    installed start-up items. Again when this failed to have an impact, I changed my browser from Firefox to Google Chrome, as I noted that the extremely high disk utilisation was at it's worst when using Firefox. This also had no effect.
    I then tried a variation of my search on Google "ntoskrnl.exe 100 disk usage windows 8" (I can't remember the exact variation) and stumbled over the above site at the beginning of this message. I had by that point tried everything that was in my power
    to try. But I noted from this article that the author recommended changing the power plan from 'balanced', to 'high performance'. Since I had   exhausted every other avenue, I decided to try this and like magic, instantly it worked. So there is clearly
    a bug in Windows 8.1 (and 8 prior to this) that causes 100% disk utilisation. I thought someone at MS might like to know about it and come up with a way to fix it.
    Below is my system configuration. Please note this system configuration may contain a number of errors, as it was generated with several non-essential Microsoft services disabled. I do not believe these issues need to be addressed. However the issue of 100%
    disk utilisation when using a 'balanced' power plan on Windows 8.1 (and 8.0) almost certainly does.
    PS
    This message board system will not allow me to post my full system configuration. MS need a better bug reporting system! Apple allow the public to submit bug reports, so why not Microsoft too. The public can find useful bugs!

    Hi,
    Thanks for your detailed description.
    We considered that the culprit for every computer is different. For the specific PC, we need to analyze the specific issue.
    Please trace the performance using the Windows performance toolkit.
    http://msdn.microsoft.com/en-us/library/hh162945.aspx
    The download link is below:
    http://www.microsoft.com/en-US/download/details.aspx?id=39982
    Then upload the .etl file to Skydrive. We will help you analyze.
    Karen Hu
    TechNet Community Support

  • Help, I installed parallel and windows, and opened videos (on an external hard disk) with windows, and now cannot open them with Mac, and use i movies.  How do I reverse this?

    Help, I installed parallel and windows, and opened videos (on an external hard disk) with windows, and now cannot open them with Mac, and use i movies.  How do I reverse this?

    Paragraphs help the reader, just saying.
    What are you actually trying to do? Why do you need "DVD size" folders if you're creatng an Archive on an external hard drive?
    Also, I understand burning folders instead of individual photos or albums gives you more space on a DVD.
    It makes no difference at all.
    How can I keep the captions on my photos (not events) when I print or transfer to a new folder?
    You can export while writing the metadata to the file in most cases.
    Tne only way I know is to copy photos from the Windows to folders on my HD, then copy and paste photos or albums or events to HD, then create a new folder and fill it to the appropriate DVD size. 
    HD? Another HD? You use HD there in a way that makes no sense. What's the point of 'DVD size'?
    I also thought I should download future photos to my Canon programming that comes with EOS cameras and edit and then decide which photos to save to iPhoto library and which to save only to my archival HD?
    Does this have any relation to the previous questions? You know you can delete from iPhoto, right?
    You're somewhat confused and you need to
    1. Decide what exactly you want to do
    2. Then go about it.
    If I understand you correctly - and there's no guarantee that I do -  the easiest thing is to bring all your Photos into iPhoto and do everything from there.
    You can have an archive on an external disk, you can sort and select and edit with or via iPhoto
    Regards
    TD

  • Scan app does not find 4625 sacnner / printer in windows 8.1

    I posted a while ago that I could not install the printer / scanner software on my laptop runningWindows 7.1  because it would not recognise my printer, although
    1. I provided the correct IP address when asked by the installer
    2. The installer worked perfectly on my  desktop PC
    3. I could see my printer/scanner with this IP address on my home wifi network in my browser
    4. I could install the printer functionality  (but not the scanner)  over the wifi through Windows by searching and selecting from its list of HP drivers
    So I gave up after trying many times over many days.
    Subsequently. I  have upgraded to Windows 8.1.  The HP installer still does not work. But by letting Windows automatically find the printer (only) driver over the network I can (as before) print to a thing called HP Deskjet 4620 Series Class Driver.
    Now I see Windows 8.1 has a separate App for the HP scanner called also HP Deskjet 4620 Series Class Driver. This, as before, cannot connect to the scanner. But:  this is interesting.  While trying unsucessfully  to connect, it displays an IP address for this HP Deskjet 4620 Series scanner which is different from the printer IP Address. (It is not a valid IP address on my network, I looked though my browser). It seem to me that if I could somehow change the scanner IP address to the correct one, the scanner would work.
    Any ideas?

    Hello Mikets ,
    Welcome to the HP Forums.
    I see that you are having connectivity issues with the scanning portion of the printer.
    I suggest we try the HP Printer Install Wizard for Windows.
    Write me back and let me know if this helped or not.
    If the troubleshooting does not help resolve your issue and you would like to seek more options, I would then suggest calling HP's Technical Support to see about further options for you. If you are calling within North America, the number is 1-800-474-6836 and for all other regions, click here: click here.
    Thanks for your time.
    Cheers, 
    Click the “Kudos Thumbs Up" at the bottom of this post to say “Thanks” for helping!
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    W a t e r b o y 71
    I work on behalf of HP

Maybe you are looking for

  • IPod Won't Sync Particular Song

    I purchased five songs from iTunes the other day and one of them will not sync to my iPod. The same thing happened earlier this summer and I tried what the tech support person suggested, but it didn't work. I thought I'd try my luck with the song aga

  • Performance Tunning - Could anyone please help

    I have a procedure which uses two offensive queries.The currenttime its taking is approximately 2 min in DEV and in PROD 20 min. Target is to reduce time to less than a minute in DEV and max 5 min in PROD. PROBLEM1######################### I think no

  • Multi sized page PDF on iPAd

    I'm creating a portfolio and having a bit of trouble. I created a document in InDesign that has different sized pages (all pages are 1024 x ???) to be displayed on my iPad. When I open the PDF on the iPad that pages that are 1024x768 show perfectly.

  • Can't re-install using original discs

    Am trying to re-install original discs on Power Mac G4. It will accept Disc 1, but when I insert Disc 2 it asks for the password, which I type in. All I can get is a big question mark. It will not continue.

  • Jsf table

    hi all, i am new to jsf and i want to create a table displaying five text boxes in two different columns using jsf component. ihave created a table using datatable tag but it is not displaying the table in browser. where i am wrong? plz guide me. tha