At 19:54 11/09/2006, you wrote:
I don't tested this with large files, but why don't you use TMemoryStream:
var
myFile: TMemoryStream;
begin
myFile := TMemoryStream.Create;
myFile.LoadFromFile('c:\myfile');
...
end;
Not need OOP for do it, i need as much speed as i can and using a
pla
At 20:02 11/09/2006, you wrote:
> var
> a : array[1..1] of byte; //100MB
> Operating system is WinXP SP2. AthlonXP 2000+ and 1.25 GBRam
Both with 2.1.1 rev. 4609 and 2.0.4rc2:
{$MODE OBJFPC}
var a: array[1..1] of byte;
i: integer;
begin write('('); for i:=1 to 1000
> var
> a : array[1..1] of byte; //100MB
> Operating system is WinXP SP2. AthlonXP 2000+ and 1.25 GBRam
Both with 2.1.1 rev. 4609 and 2.0.4rc2:
{$MODE OBJFPC}
var a: array[1..1] of byte;
i: integer;
begin write('('); for i:=1 to 1 do a[i]:=a[10001-i]; writel
> >On 11 Sep 2006, at 18:09, Eduardo wrote:
> Also tried changing 100M of byte with 25M of cardinal but got the same error.
>
> Operating system is WinXP SP2. AthlonXP 2000+ and 1.25 GBRam
What are you compiling _for_ ? The plain dos compiler has a limit of 64MB
under Windows. Make sure you us
I don't tested this with large files, but why don't you use TMemoryStream:
var
myFile: TMemoryStream;
begin
myFile := TMemoryStream.Create;
myFile.LoadFromFile('c:\myfile');
...
end;
--- Eduardo <[EMAIL PROTECTED]> wrote:
> Hello:
>
> I have a little problem, i participe in the '
At 18:30 11/09/2006, Jonas wrote:
On 11 Sep 2006, at 18:09, Eduardo wrote:
I have a little problem, i participe in the 'Large Compression
Benchmark' (http://cs.fit.edu/~mmahoney/compression/text.html) and
need to cache the whole enwik8 file (100MB) on memory but when i
try to allocate
On 11 Sep 2006, at 18:09, Eduardo wrote:
I have a little problem, i participe in the 'Large Compression
Benchmark' (http://cs.fit.edu/~mmahoney/compression/text.html) and
need to cache the whole enwik8 file (100MB) on memory but when i
try to allocate space for it i get a compiler error,
Hello:
I have a little problem, i participe in the 'Large Compression
Benchmark' (http://cs.fit.edu/~mmahoney/compression/text.html) and
need to cache the whole enwik8 file (100MB) on memory but when i try
to allocate space for it i get a compiler error, saying that maximum
is 64MB (6710886