as long as there is no reference from any GUI component (or any variable, property, etc...) to a certain GUI component it will be removed by the Garbage Collector. To answer your question: No, there is no possibility that a memory allocated by EwNewObjectIndirect() is not freed by the Garbage Collector if it is no more in use.
Anyway, in order to find the root cause: Instead of debugging through the internals, please try to use the EwPrintProfilerStatistic() function within your main loop and let me know the outputs - especially before the Panic happens. This will give a good overview of the current memory situtation. Additionally, the printed messages at the beginning of the application are helpful.
Thank you and best regards,
Ask Embedded Wizard
Welcome to the question and answer site for Embedded Wizard users and UI developers.
Ask your question and receive answers from the Embedded Wizard support team or from other members of the community!