Hi Friends.
I have Linux Ubuntu amd64 and Lazarus 0.9.30.2.
In my Lazarus program,that I made I declared this as global:(This is a large statistic program that works fine in Delphi 4)
numbers:array[1..10000,1..20]of integer;
numberstxt:array[1..10000]of string;
datetxt:array[1..10000]of string;
odd:array[1..10000]of string;
even:array[1..10000]of string;
pr:array[1..10000]of string;
back:array[1..10000]of string;
row:array[1..10000]of string;
nr2:array[1..10000]of string;
best:array[1..10000]of string;
lowest:array[1..10000]of string;
t:array[1..10000]of string;
srt:array[1..10000]of string;
inrow:array[1..10000]of string;
ownsttxt:array[1..10000]of string;
worked:array[1..10000]of string;
rowinrow:array[1..10000]of string;
rowinrowtxt:array[1..10000]of string;
nrr1:array[1..10000]of string;
statistic1:array[1..10000]of string;
md:array[1..10000]of string;
filtxt:textfile;
antal:integer;
I pick up 6000 numbers and place then in my variable numbers(declared 10000,20) and in numberstxt(declared 10000).
antal is 6000 and store it in my textfile like this:
assignFile(filtxt,'vikingrader.dbs');
rewrite(filtxt);
writeln(filtxt,antal);
for a2:=1 to antal do begin
writeln(filtxt,numberstxt(.a2.));
writeln(filtxt,datetxt(.a2.));
end;
for a2:=1 to antal do begin
for b2:=1 to 20 do begin
writeln(filtxt,numbers(.a2,b2.));
end;
end;
closefile(filtxt);
Here is the problem.
When I look in the textfile I see that the texfile can't store the whole 6000,20 numbers in the textfile when the declaration is 10000,20? and not loading it either!
Solution:
If I lower my declaration of variables from 10000,20 to 7000,20 , the file saves all 6000,20 numbers variable!
Is this a Memoryproblem in Linux,Lazarus ?
Best regards
Rob