I have been battling many different memory leaks on this project of mine that all seem to reside in the Xojo Framework like the label color and async shell leaks. I think I have found another with container controls on Raspberry Pi.
In my app, I create and destroy ContainerControls with code like this:
// CustomContainer is a property of type CustomContainerControl // CustomContainerControl has one label in it // Create Container CustomContainer = New CustomContainerControl CustomContainer.EmbedWithin(Self,0,0,Width,Height) // Destroy Container CustomContainer.Close CustomContainer = Nil
On macOS there is no problem, it appears to create and destroy the container without leaking, however, on Raspberry Pi it leaks about 47KB each time the control is created and destroyed. In my app I use container controls for everything, all the navigation is based on changing the displayed container, I have nested containers that are created at design time and containers that are created runtime. With my full app I can leak the entire system memory (4GB) in a very short time.
Can someone with a Linux desktop machine please confirm this affects all Linux OS’s or just Raspberry Pi?
I have a feeling that it will be a while till we see a future release of Xojo so I’m a bit lost at the moment…
Any ideas would be helpful, thanks!