Jump to content

Large File Splitter


Kas

Recommended Posts

Hello.

I'm trying to implement a large binary file splitter. With relatively small files (>200 MB), this seems to work ok. But with large files (<1 Gb), it fails. Randomly, I see a file being created with 0 KB size on it (attached picture). The problem seems to go away if I put a delay of 03s inside the loop, but anything less and the problem persists. I'm not sure if I'm doing something wrong (most likely) or if its a labview bug.

Thanks

Kas

post-15024-0-57101400-1352384496_thumb.j

  • Like 1
Link to comment

No such error when I run it (3GB files even). I removed the wait function altogether. Running LV 2012f3 32 bit.

It's not just an update issue , if you hit F5 or reopen the directory the OS has not updated the number to its correct size?

Does it happen on a number of different files and sizes (above 1 GB)?

  • Like 1
Link to comment

It's not just an update issue , if you hit F5 or reopen the directory the OS has not updated the number to its correct size?

Nice, that was it. I was monitoring the directory, but forgot to refresh. Everything seems to be there.

Thanks

Just a general comment: There is no need to set your file position inside of the loop. The position increments during the read. After a read, the position will be set to the next byte, so the the next read will start where the previous left off.

Didn't know about this little trick. It certainly simplyfies things.

Thanks again.

Kas

Edited by Kas
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.