I have a list of TPanels in a FMX application and i want to free a panel if I clicked on it.
To free them directly in the onclick-handler is not the right way because i get a access-violation. And I don’t want to use windowsmessages (recommended in How to free control inside its event handler? and Why does my program crash when I destroy a button in its own OnClick handler?) because it is a firemonkeyapplication and i do not know how this messages works on android and mac.
Is there a other solution?