What are the maximum numbers for a three dimensional array?
Are there any? Or are the limits set by available memory?
The reason for my question:
Code: Select all
a1.i=999
a2.i=999
a3.i=268
q.i=8
Debug (a1+1)*(a2+1)*(a3+1)*q
Dim A.q(a1, a2, a3)
MessageRequester("", Str((a1+1)*(a2+1)*(a3+1)*q))
The snippet crashes with debugger of.Debugger wrote: [15:26:34] Warte auf den Start des Executable...
[15:26:34] Executable-Typ: Windows - x64 (64bit)
[15:26:34] Executable gestartet.
[15:26:34] [ERROR] Zeile: 8
[15:26:34] [ERROR] Ungültiger Speicherzugriff. (Schreibfehler an der Adresse 18446744073709551568)
[15:26:37] Das Programm wurde beendet.
I have 16 GB of memory installed. There are approx. 14GB free, if I run
the code above with "a3.i=267".
So what is the reason for the crash?