> This is the source for fread in Lion.
int r
> No, and I'm not about to. It is irrelevant.
Ok, continue to live in full denial.
Blocking the process.
Its your decision.
> It is a buffered read operation.
This program is a copy, and does not work when file are greater then 2G
Its a fact, and an apple bug.
And it worked with snow leopard and NOT with Lion.
> You would never, ever want to read that much data at once
Its is not persona,l its about a bug in apple product named Lion.
There is a bug and you refuse to recognise that.
> It is fairly obvious that Lion supports files larger than 2 GB.
No and i proved that in this program.
And you refuse to recognize that.
You have the tool to prove it by yourself and you refuse to do it.
Its call live in denial or refusal of reality.
So, delete your original file and rename the output you processed by the program.
As you say : "Your code works fine on Lion here"
DO IT.
It is not because the length is the same than the output file is the same.
The two files you processed are not the same, and you refuse to see that, exposing your incompetence.
Thats a fact.
Had with the lack of anybody qualified in this forum, with minimum skill on developement, i filled a bug report here http://bugreport.apple.com and its difficult because i get the following error :
An error has occurred. Please report the error to Apple Inc. by emailing the error detail to devbugs@apple.com.
and after sending an email to the adress they said to report on http://bugreport.apple.com
creating they own loop.
Fun
i'll try later when they fix that also.
But as i said earlier i modified the program who was working for years on leopard an snow leopard.
Maybe month later on years later they will fix this bug.
Good luck for you in your denial state.
And excuse me having reporting a bug on apple forum and take your time.
I am very sorry,
It was my first post on apple forum and with this awful experience i think the lastest.
Next time i'll fix by myself without reporting here.
> You never should have done it in Snow Leopard to begin with.
Please.
The length is size_t and not int or short int.
Learn programming first.
Bye