"end of file error" of reading blocks in binary.

I wrote some example data in binary format.
Then read it again but met error 4.
The read function reads 64 byte without problem.
After this the file positioner will be located in end of file.
Any special care is needed?
labmaster
Attachments:
New Picture (1).jpg ‏97 KB
read_write_binary.vi ‏16 KB

I got to know the problem.
Count means the number of data. not byte number.
labmaster

Similar Messages

  • Keep getting message pop up "Error reading/writing file  "com.apple.logic.pro.cs": Logical end-of-file reached during read operation," and "The Preferences are not loaded completely. Save them to "com.apple.logic.pro.cs" anyway?" Using Logic pro 8. ???

    Logic froze while I was working on something so I forced quit.  Now every time I open LOGIC a message pops up that says:
    "Error reading/writing file
    “com.apple.logic.pro.cs”:
    Logical end-of-file reached during read operation."
    The only button option is cancel so I press it and another message appears that says:
    "The Preferences are not loaded completely.
    Do not save them, as you would overwrite the Preferences file with incomplete data."
    Then when i close logic a box appears saying:
    "The Preferences are not loaded completely.
    Save them to "com.apple.logic.pro.cs" anyway?"
    There are 3 button options to press; ok, cancel or dont save.
    I press "don’t save" cuz I don't want to ruin anything.
    I found a discussion located here: https://discussions.apple.com/message/9564253#9564253 that says if I delete the file "com.apple.logic.pro.cs" it will resolve the problem.  If I do this will I loose or mess anything up at all, automation, saved channel strips customizations, saved effects, synth, or ultrabeat customizations etc? Or especially will I loose any work I've done?  I have hundreds pieces of music files I've created.  I'm scared to mess anything up with all the hours and months of work I've done.  Is there anyway to fix this without loosing anything?  I'm using Logic Pro 8.
    Thank you

    You can safely delete this file - its the preference file for control surface settings - you haven't said whether you're actually using a control surface or not, if so, you will have to set it up again. A new file will be created when you fire Logic up again, but of course it will contain default settings. If you have a complicated control surface setup, remember to keep a backup copy somewhere in case any future problems arise.
    Other than that, you really have nothing to be scared about - hopefully your problem is as simple as that and there isn't an underlying problem (a corrupt hard drive, for example). You seem concerned about losing work, so I guess you want to think about backing that up on a regular basis too. If you're saving your projects to your system drive, do get an external one for this. And also check that you have plent of free space on your system drive - you need to keep about a quarter or third of it free for your OS and programs to run properly (some temporarily stored files can be quite large).

  • Error "logical end of file reached during read operation"

    I am trying to burn a dvd of a wedding I did, and this is the error I am getting. After 5 hours of it trying to burn when I click cancel this it says " logical end of file reached during read operation". Does anyone know what this means, and how I can fix it? I am anxious to get this wedding finished and out to the customer. Any help would be greatly appreciated.

    How long is the wedding video?
    My standard list of things to do first...
    Run MacJanitor (free download) to do all the Unix Cron Maintenance scripts.
    Run Disk Utility (Applications -> Utilities) and repair disk permissions on your start up drive (typically your internal drive). Also verify any other drives mounted on the system.
    Run Preferential Treatment (free download) to check for corrupt/damaged application and system preference files.
    Run Cache Out X (free download) to clear all system and application caches.
    Reboot your Mac.
    If you still can not get it to run correctly, next thing to try is to throw out the iDVD preference file (don't forget to change back those preferences you want different from the defaults next time you run it). If it still doesn't work, then I would suggest you reinstall iDVD.
    Patrick

  • Error: Logical end-of-file reached during read operation. Result Code = -39

    Hello all,
    Recently, I have been suddenly getting this error message:
    "Logical end-of-file reached during read operation. Result Code = -39."
    In my case, when it does come up, it always pops up during the recording of an audio take. Almost immediately after hitting the stop button, this error message would pop up. And then when I go to check the take that was just recorded, there is nothing but shrieking noise. As a result, this pop up error trashes any good take I may have had. It's unpredictable as to when this error decides to pop up as well. So now, when I record, I tend to just have my fingers crossed and hope that this error doesn't pop up especially right after recording a good take!
    To no avail, I have tried different I/O buffer settings, repaired permissions, rebooted, and even re-formatted my recording hard disk.
    Could this be a possible hint that my hard disk is about to physically collapse? I have had it for about 2 years. Could it be some sort of bug in Logic? Or something else perhaps?
    Appreciate any feedback! Thanks a lot!

    DamonGrant wrote:
    Thanks for those suggestions Erik...
    It's been happening for a month I guess and I don't think that anything new's been installed. I will try recording to the start up disc and to maybe to some USB discs I have.
    It seems to happen after working on a project for some time.
    After say tracking takes for 45 mins or so. Maybe it's just coincidence, but do you think that might indicate a hardware issue?
    Now there might be a clue. What happens when you then quit Logic, reboot your Mac, and reopen the active session? It might be that your disk has become a bit messy from all the traffic, and it just needs to 'settle' in OS X again. Click on the *Spotlight icon* top right of your screen and see if any indexing is taking place. Wait for it to finish before launching Logic.
    Alternatively, you could exclude your recording disk from Spotlight indexing alltogether, by dragging the disk to the Privacy field in the Spotlight Sysprefpane.
    One other thing to do: turn off Journaling , using *Disk Utility.* Select your recording volume in Disk Utility, hold the alt key while dropping down the File menu. Choose *Disable Journaling.*
    On the other hand, it might also point to a RAM issue. Do you ever suffer Kernel panics (=the darkening 'curtain' and the message "You need to restart your Mac... etc")? or 'unexplained' crashes? If not or very rarely, I'ld rule out a RAM issue. If daily, it could be. What you can try in this case is to turn of your Mac and physically take out and reinsert your RAM.
    And when you trash (=eject/unmount), physically disconnect and reconnect your recording disk? Does that help? (Logic should not be running when you do this)

  • Error in reading (block 3, # blocks 8) of control file

    Hi All,
    My database experiencing this error :
    ORA-00204: error in reading (block 3, # blocks 8) of control file
    ORA-00202: control file: 'C:\ORACLEXE\ORADATA\XE\CONTROL.DBF'
    ORA-27091: unable to queue I/O
    ORA-27070: async read/write failed
    OSD-04006: ReadFile() failure, unable to read from file
    O/S-Error: (OS 23) Data error (cyclic redundancy check).
    Worst part we do not have latest backup and makes things weird.
    My Control file seem corrupted.

    Error: ORA 204
    Text: error in reading control file <name> block <num>, # blocks <num>
    Cause: A disk read-failure occurred while attempting to read the specified
    control file.
    The block location of the failure is given.
    Action: Check that the disk is online.
    If it is not, bring it online and shut down and restart Oracle.
    If the disk is online, then look for operating system reasons for
    Oracle's inability to read the disk or control file.
    Use the mutiplxed controlfile if you have already available to start your instance...
    SQL>show parameter control_files;
    Use above command

  • ORA-00204: error in reading (block string, # blocks string) of controlfile

    dear all
    when i start db
    with command  sqlplus "/as sysdba" 
    at the end it generate an error
    C:\Documents and Settings\idsadm>sqlplus "/as sysdba"
    SQL*Plus: Release 10.2.0.1.0 - Production on Mon Oct 20 12:47:37 2008
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to an idle instance.
    SQL> startup
    ORACLE instance started.
    Total System Global Area  557842432 bytes
    Fixed Size                  1250140 bytes
    Variable Size             289410212 bytes
    Database Buffers          264241152 bytes
    Redo Buffers                2940928 bytes
    ORA-00204: error in reading (block 3, # blocks 50) of control file
    ORA-00202: control file: 'F:\ORACLE\IDS\SAPDATA1\CNTRL\CNTRLIDS.DBF'
    ORA-27091: unable to queue I/O
    ORA-27070: async read/write failed
    OSD-04006: ReadFile() failure, unable to read from file
    O/S-Error: (OS 23) Data error (cyclic redundancy check).

    dear karan & all
    i have copied "control file" from another location but now it generate an error
    SQL> startup
    ORACLE instance started.
    Total System Global Area  557842432 bytes
    Fixed Size                  1250140 bytes
    Variable Size             289410212 bytes
    Database Buffers          264241152 bytes
    Redo Buffers                2940928 bytes
    ORA-00211: control file does not match previous control files
    ORA-00202: control file: 'F:\ORACLE\IDS\SAPDATA1\CNTRL\CNTRLIDS.DBF'
    SQL>
    now tell me what can i do
    regard

  • Logical end-of-file reached during read operation

    Hi,
    Something strange happened to my Logic a couple of days ago - all of a sudden. When I start Logic up it gives me the following error message:
    *Error reading/writing file “com.apple.logic.pro.cs”: Logical end-of-file reached during read operation.*
    I have re-installed Logic, as well as updated it (8.0.2), I have repaired disk permissions in Disk Utility, and it still keeps popping up. I cannot get on with my projects and I have deadlines!
    I found an IT support site, according to that I don't have enough space on my HD. However, I do... I'm confused, and desperately need help.
    Thank you so much, I'm looking forward to hearing from somebody.
    Agnes

    I am not opening any files, just launching Logic.
    I know. And when you launch Logic, it loads its preferences files - and it seems this is failing - most likely due to file corruption. So delete the file, as I said, and Logic should load fine.

  • End of file error, elements 12

    I've recently started getting an 'End of file' error when I try to open around a third of my RAW files in Elements 12.
    Very frustrating, as I've some decent photo's, and means I'm taking having to take photo's twice to compensate, not ideal. I wondered if it may be a space issue, so have deleted lots of files from my Toshiba laptop, and in particular edited files that use up more space.  This hasn't helped though so I'm pulling my hair out.  
    Any help would be greatly appreciated, thank you.

    Yes, definitely, the GB Project file is corrupt, delete it, empty the trash, and it would be a good idea to run some kind of disk repair program, even if it's just Disk Utility. Then create a new project file.
    Good luck --HangTime [Will Compute for Food] B-|>

  • EXS 24 Logical end-of-file reached during read operation Result code = -39

    EXS kit Trip Hop Remix will not completely load. Upon trying to load it I get the error, Logical end-of-file reached during read operation Result code = -39. The kit ends up lacking samples. It worked at one time but now it will not load up. To try and fix I extracted two kits with the same name but oddly they are slightly different sizes and have different creation dates, one 2004 the other 2007 hmmm (one goes in Garage band for remix tools the other gets placed in 02 Electronic Drum kits) from the install disks using Pacifist hoping to replace corrupted files. NG. I also reinstalled all the samples from the LP8 install disk, still NG. Anybody have a solution. THanks.

    To further clarify, the samples are all located in the folder Garage band/.../.../.../Sampler Files/Treated Percussion Sets/Perc-DnB+Triphop. They are used in the EXS24 Trip Hop Remix kit.exs. The 3 samples that seem to be causing the error are, YT2BGLRHTX02_3ue.aif, YT2BGLRHTX03_3ue.aif, YT2BGLRHTX04_3ue.aif. The kit is useless and my song is screwed up now that the kit will not load. Any ideas for a fix out there ?

  • End of file error using modified version Cont Pattern Input.

    Hi. I am using the Cont Pattern Input example, which is modified to write the Data Read to a file on the hard drive. A wire is connected from the Data Read to a "Write to I16 subVI" which is also modified to be a "Write to U8 subVI". It writes problem free to the file specified until the 2.1 GB when it displays a Error 4 "End of File Error". There is ample space on the hard drive. How do we get rid of this error as we would eventually need to write up to 60 GB of data?

    Unfortunately, the only thing to do is get a different operating system. I seem to recall that Windows has a fixed limit on file size of about 2G.
    Is there any way you can logically break the data you're collecting into smaller logical units? Alternately, you could structure your code to write to one file till it fills and automatically switch to a second, and a third and so on. As long as the routine that you write for working with these huge datasets keeps track of the various pieces of data it could all work as though it were all in one very very very large file.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • End of file error on previously opened Raw files.

    I recently had an external hard drive get damaged. Many raw files were able to be recovered but when I go to open ones I had previously manipulated in ACR I get an end of file error. It seems it's only on the previously used photos...is there a way to recover them so I can re-edit them?

    You might try IfranView - it's free. It will open corrupt images and you can visually see the extent of the corruption, e.g. 90% of the image might show, with garbage showing at the bottom.
    You could then crop the image and use that - losing the corrupt part.
    You should also consider using a cloud storage service like dropbox, google drive, box.com, Creative Cloud etc. to backup your images.
    I'd try to refrain from working from an external drive.

  • End of File error on .nef files

    I am beginning to see a growing number of my .nef files becoming visually corrupt in the viewer and showing the "end of file" error when opening in PS or any other application.
    The corruption does NOT seem to affect the associated .jpg file (if there is one) but I am also NOT able to generate another "clean" .jpg file with the .nef files that have become corrupt.
    I hope that I haven't confused everyone - but this issue is rather baffeling in that I can't seem to pinpoint a cause.
    My master files are stored as reference files on a server share - all shot with a Nikon D2X.
    Does anyone have an idea of what may be causing this - and better yet - is there a way to reverse the corruption?

    I do have a number of other systems that I can use to test from. THe file server is a general purpose server in my home running 10.4.x with all of the latest patches, etc.
    I am using a SanDisk card reader to ingest directly into Aperture. The corruptness appears to be random.
    I am using a Nikon D2X with a number of CF cards, usually 1 or 2GB in size. I capture recording .nef (RAW) images to the CF card.
    My workstation is a PowerMac, Dual G5, with 2.5GB processors and 2.5GB of memory. I am using MacOS 10.4.2 with all of the appropriate patches and updates.
    The Server is a PowerMac, Dual G5, with 2.5GB processors and 2.5GB of memory. The server is running MacOS 10.4.x Server, again with all of the appropriate patches and software.
    The network is Gigabit speed with one switch between my workstation and the server. The Switch is a GSM7224 L2, 24-port 10/100/1000MBps managed switch.
    The users in my home (in this case; me) log into any of a number of workstations in my home and authenticate against the server using LDAP. Once authenticated, home directories are available and stored on the server.
    This appears to be network related as I can ingest and save locally to the server and open the files without any corruption.

  • How to resolve Unexpected End of file error in Web Crawling

    how to resolve Unexpected End of file error in Web Crawling....
    I am getting java.net.SocketException :Unexpected End of file error in Web Crawling.
    How to get rid of this error.
    Please help anybody ASAP.

    1. Handle this exception - not recommended since you will be creating an exception handling overhead unnecessarily.
    2. Check for EOF using available() method in InputStream. It returns 0 if there are no bytes to read.

  • Photoshop CS4 "Cannot save due to an end-of-file error" Help

    This problem occurs daily, probably 15-20 times per project. I take on normally 3-4 projects per day, so you can see how annoying this is. Basically when I'm saving, I get a dialogue box that says "Cannot save your file due to an end-of-file error" or something to that extent. I would love to resolve this, this problem is persistent and it's driving me out of my mind I'm saving to a network, if that has any correlation. Thanks in advance   
         Chris

    This is the boilerplate text often used in connection to saving to a network (please NOTE the part where it explains that normally, it does work, but that it is impossible to troubleshoot someone else's network remotely, and that's why it's not supported by Adobe):
    If you are opening files over a network or saving them to a network server, please cease and desist immediately in the event you are currently experiencing problems with one or more files. Working across a network is not supported.
    See: 
    http://kb2.adobe.com/cps/406/kb406793.html
      Copy the CLOSED file from your server to your local hard disk, work on it, save it again to your local hard disk, close it, and copy the closed file back to the server.
         Of course, the fact that Adobe does not support working across a network does not necessarily mean it won't work.   It should.
        Adobe's position is that there are too many variables in a network environment for them to guarantee that everything will work correctly in every network, especially given the fact that if something does not work properly, it's probably the network's fault, and Adobe has no way of troubleshooting your network.
      If you can't work locally, you are on your own, and if something happens, you're on your own. If you must work from a server, make sure your network administrator is a competent professional.
    When problems arise, a lot of valuable work can be lost.

  • Inconsistent "End of file error" on "open for access "myFile.txt"

    I have a script that accesses a txt file containing info needed for values in the script. Sometimes the script works flawless, but once I get the "End of file error," it won't work right anymore unless I log out and log back in or if I dump the file and rewrite it. Below is a copy of the portion of script having the problem:
    +set _fileRef to open for access "Library:Preferences:MyTextFile.txt" with permission+
    + set ReadMyTextFile to read _fileRef as string+
    + close access _fileRef+
    Is there a way to reset the "End of file" status so that I can access it later with the same script in one login session? I have a feeling that the first time it opens, that it reads to the end of the file and then closes the file. When it opens again the script starts to read where it left off at the end of the file. Does that sound right?
    Any help would be great.

    OK, it looks like if you are going to use the open for access..close access, you need to keep tack of the EOF yourself, so you can just read to the EOF - for example:
    <pre title="this text can be pasted into the Script Editor" style="font-family: Monaco, 'Courier New', Courier, monospace; font-size: 10px; padding: 5px; width: 720px; color: #000000; background-color: #E0E0E0; overflow: auto"> set TheOpenFile to open for access (choose file)
    try
    set SomeText to paragraphs of (read TheOpenFile to eof as text)
    close access TheOpenFile
    on error
    close access TheOpenFile
    end try
    choose from list SomeText with prompt "File text:" with empty selection allowed
    </pre>
    If there isn't any particular reason to explicitly open and close the file, you can use something like:
    <pre title="this text can be pasted into the Script Editor" style="font-family: Monaco, 'Courier New', Courier, monospace; font-size: 10px; padding: 5px; width: 720px; color: #000000; background-color: #E0E0E0; overflow: auto"> set SomeText to paragraphs of (read (choose file) as text)
    choose from list SomeText with prompt "File text:" with empty selection allowed
    </pre>
    In the above examples I used paragraphs of in order to use the choose from list, since it displays stuff like this a little bit better - see this article for a tutorial on file read/write in AppleScript.

Maybe you are looking for

  • Lock ups with ti-5900 MS-8929

    After about 5 minutes of running a game (/a 3d app) the comp freezes up, the audio still plays just the screen locks up. I think this may have something to do with the gpu. Ive got all the latest drivers etc. The driver thing says the gpu is usually

  • Using apple tv to display my desktop on my tv?

    I dont want to hack my apple tv, i don't do those sort of things, ( jailbreaks and chipping games consoles) but is there some way or does anybody know if there might be the possibility that i can sit browsing safari on my macbook on the sofa click th

  • Out put determination error in billing

    Hi In my current  project I have to do printing of mass billing documents at once For this i configured output condition type ZD00 and access sequeunce ZBNG I have defined procedure Z10000 and assigned condition type to it  and done all necessary con

  • Charge adaptor for 3G

    so the 3g has been out a while now and i still cant find an adapter so my CD player in my car will charge my iphone 3g. i see cablejive has made one that will be on sale soon, does anybody know if there is any other adapters already fro sale? http://

  • I lost my ipod, and i had just set up iCloud, but i dont hav IOS 7 because it is a older generation, what do i do??

    HELP!!!