Got an application which is closed with application.Terminate. When it closes I get the following error messagesWithout the code that produces the errors it is not possible to say how these errors arise, since they come not from Lazarus but from the gtk libraries, which don't usually have debugging information you can use to trace the call chain that raised such errors.
I don't really understand .create(TheOwner : TComponent) and so far have been using self or nil where self doesn't work. Nor have I found anything useful on the web to improve my understanding.The concept of ownership is introduced in the declaration of TComponent which provides a public Owner property of type TComponent. A TComponent instance specified as Owner to other components implements a mechanism to ensure that all its owned components are freed before it is itself freed.
cFileImg:=TImage.Create(ConfirmForm);
you had used cFileImg:=TImage.Create(Self);
...just wish there was a resource somewhere that wrote all this down :(Try this: https://castle-engine.io/modern_pascal_introduction.html