If the first run usually works, then in tools > options, set under debugger "reset after each run".
Also try changing the "internal start break" in the property grid.
Or use FpDebug.
Sorry, forgot to create a log like you suggested, but since you seem to be back did you possibly have a look...?I meant "I can have a look at the log file". This is in case gdb reports any error, but the error is hidden by the IDE.
Thank for coming back on this issue. I created a log file now as suggested, started Lazarus with said parameters und it did me the favour of starting the project blank and dead on first try. App was then killed via Linux Task Manager, not Lazarus Halt (Ctrl+F2). File attached. Odd thing is still that projects that have been created earlier still run without problems, still no blank forms, no hanging.
"*stopped,reason="exited-signalled",signal-name="SIGKILL",signal-meaning="Killed""
As for crash on app closing I mentioned it mainly because trouble seems(!) to have started after this happened for the first time. But as I said this 'unfortunate' behaviour can be prevented by just adding if not Application.Terminated. Changing creation/destruction order seems not to be possible, and switching positions of objects in *.lfm also didn't help. It's not he only 'unfortunate' issue with TTreeView/TShellTreeView but that is indeed a different topic.Label is a GrapicsControl, so its in a different bucket when it comes to creation order. But a need to change the order IMHO should not be there.
The debug trouble seems to have no connection with them either. It also happens with the most simple projects with just a TButton on the form.Indeed, those are 2 different issues.
Thanks again. While FpDebug is fine for your own code it does not seem to step in lcl etc code. I don't know if I can recompile stable with necessary debug info, and I don't know if I want to.It should step in. Unless fpc still defaults to "stabs".
Works (of course...). However, IDE always suggested '-gs -godwarfsets' for projects with FpDebug, I guess I should switch that to '-gw3' as well?gw or gs??