Forum > General
FP crashes after running run
anon:
Its not issue with code, even hello world program like this crashes it when running run
program Hello;
begin
writeln ('Hello, world.');
readln;
end.
jamie:
are you using the FPC IDE?
use the Lazarus IDE and select a simple program for your project, that will generate a console app.
if you are selecting and Application then yes, those procedures will crash at runtime but will work if you start it from the CMD because a console is already operating.
anon:
Yes, I use FPC IDE. I tried using CTRL+SHIFT+F9, but it still crashes.
How can I fix it?
Thaddy:
--- Quote from: anon on January 12, 2025, 08:37:03 pm ---Its not issue with code, even hello world program like this crashes it when running run
program Hello;
begin
writeln ('Hello, world.');
readln;
end.
--- End quote ---
Then you need to re-install. (If the above is true, you have an installation mishap)
TRon:
--- Quote from: anon on January 12, 2025, 08:12:46 pm ---Hello, what should I do when free pascal crashes after using run option?
--- End quote ---
First of all, please do not use video's. They are a time-waster.
Secondly, I do not see any crash. Only FPC-IDE that fails to execute your executable.
And last, rename your program. FPC expects a valid identifier (which it currently isn't).
Navigation
[0] Message Index
[#] Next page
[*] Previous page