Forum > General
FP crashes after running run
jamie:
I've only used the FPC just to see what it is but it seems that somehow you could be generating the wrong app.
Try putting this at the top of the source after the "program proper_name"
{$AppType Console}
anon:
https://prnt.sc/PhExYVUm98pc
Also when I put that and press run, the IDE closes, I dont see any output from the program and it doesn't return back to ide, it closes and I have to start it again.
My program works, when I use compile option in FPC and then open windows cmd prompt and go to C:\FPC\3.2.2\bin\i386-win32 directory and then run the executable file compiled by FPC, it works. https://prnt.sc/ga-eC6QortM4
The issue is with FPC ide, it does for every program the same and it's annoying that I have to run the executables manually and can't use run option.
To reproduce:
- Make program in FPC - https://prnt.sc/I97MEMs7dwFy
- Use run option or press CTRL + F9 or CTRL + SHIFT + F9
- FPC IDE will exit and you will have to open it again, no output is there
This is my version of FPC https://prnt.sc/P0n81s5DAZRU
Martin_fr:
What crashes is not "FPC" but the "FP IDE". At least most likely. Fpc is the compiler itself. You might want to edit your initial message and change the Subject accordingly.
You could try to install fpc 3.2.2 or 3.3.1 both have bugfixes that were made since 3.2.2. But they are both "working versions", they are not releases, they do not have downloads, they need to be build from source.
You could also try to see what causes the crash.
Run cmd.exe and then inside cmd.exe start the fp.exe => then when it crashes, the window should remain open, and maybe something of interest got printed on the screen.
If not, then you need to make a debug build, and debug it....
jamie:
Maybe run the fpc ide from the cmd.
anon:
No error is shown https://prnt.sc/vtTM9wXQmXP9 https://prnt.sc/8c7Pb8NLhKRJ
Navigation
[0] Message Index
[#] Next page
[*] Previous page