I having trouble with a pascal program I made:
I work with arrays of 100 and 1600 - length. Everything works fine.
When I change the length of the arrays (wich should still work fine I
think), I get a 201 runtime error (freepascal-compiler).
The error occurs when the program calles a function and passes the
array. Nothing is wrong before the functioncall, but he can't get in
the function.
it goes as followed:
const
maxtijden : 1000; {works well with 100}
type
muztype : array[1..2,1..maxtijden];
punten : real;
var
muziek: muztype;
begin
something to fill muziek
{works fine till here}
punten := doelfunctie(muziek);
end.
function doelfunctie(muziekd : muztype) : real
var
muziekd : muztype;
begin
{he cannot get on the first line here}
end;
It would be an enourmous help if somebody could relieve my pains....
thanks!