- Posts: 54
- Thank you received: 1
×
Discussions for CodeTyphon Object Pascal Programming Language
Question Not clear close the program!!! problem IDE?!
- Tigr
- Topic Author
- Offline
- Junior Member
-
Less
More
4 years 8 months ago - 4 years 8 months ago #11046
by Tigr
Not clear close the program!!! problem IDE?! was created by Tigr
When performing a simple task, namely filling a three-dimensional array, the program suddenly for no reason just destroyed....( CT 6.2
var
mas:array[1..2097151,1..2097151,1..2097151] of integer;
///....////
procedure TForm1.Button1Click(Sender: TObject);
var i,j,k:integer;
begin
for i:=1 to 2097151 do
begin
for j:=1 to 2097151 do
begin
for k:=1 to 2097151 do
begin
mas[i,j,k]:=1;
end;
end;
end;
form1.Memo1.Lines.Add('dfbdfbdb');
end;
var
mas:array[1..2097151,1..2097151,1..2097151] of integer;
///....////
procedure TForm1.Button1Click(Sender: TObject);
var i,j,k:integer;
begin
for i:=1 to 2097151 do
begin
for j:=1 to 2097151 do
begin
for k:=1 to 2097151 do
begin
mas[i,j,k]:=1;
end;
end;
end;
form1.Memo1.Lines.Add('dfbdfbdb');
end;
Last edit: 4 years 8 months ago by Tigr.
Please Log in or Create an account to join the conversation.
- Tigr
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 54
- Thank you received: 1
4 years 8 months ago #11047
by Tigr
Replied by Tigr on topic Not clear close the program!!! problem IDE?!
after restarting the program from the environment .... there is a bug:
failed to execute:193
failed to execute:193
Please Log in or Create an account to join the conversation.
- Sternas Stefanos
-
- Offline
- Moderator
-
- Ex Pilot, M.Sc, Ph.D
4 years 8 months ago - 4 years 8 months ago #11048
by Sternas Stefanos
PilotLogic Architect and Core Programmer
Replied by Sternas Stefanos on topic Not clear close the program!!! problem IDE?!
Sir
don't use so big numbers (2097151) in multi dimension arrays
wiki.freepascal.org/Integer
this sample work OK
don't use so big numbers (2097151) in multi dimension arrays
wiki.freepascal.org/Integer
this sample work OK
var
mas: array[1..100, 1..100, 1..100] of integer;
procedure TForm1.Button1Click(Sender: TObject);
var
i, j, k: integer;
begin
for i := 1 to 100 do
begin
for j := 1 to 100 do
begin
for k := 1 to 100 do
begin
mas[i, j, k] := 1;
end;
end;
end;
form1.Memo1.Lines.Add('dfbdfbdb');
end;
PilotLogic Architect and Core Programmer
Last edit: 4 years 8 months ago by Sternas Stefanos.
Please Log in or Create an account to join the conversation.
- Tigr
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 54
- Thank you received: 1
4 years 8 months ago - 4 years 8 months ago #11049
by Tigr
Replied by Tigr on topic Not clear close the program!!! problem IDE?!
Thank you! I'm just under forgot for a moment that program need a lot of memory!
when I'm on the calculator counted realized what a fool!
when I'm on the calculator counted realized what a fool!
Last edit: 4 years 8 months ago by Tigr.
Please Log in or Create an account to join the conversation.
- Sternas Stefanos
-
- Offline
- Moderator
-
- Ex Pilot, M.Sc, Ph.D
4 years 8 months ago - 4 years 8 months ago #11050
by Sternas Stefanos
PilotLogic Architect and Core Programmer
Replied by Sternas Stefanos on topic Not clear close the program!!! problem IDE?!
have fun...

PilotLogic Architect and Core Programmer
Last edit: 4 years 8 months ago by Sternas Stefanos.
Please Log in or Create an account to join the conversation.