Still working on my raspberry project, I let it run for about 6 hours and found it had used up just shy of 1.5gb of memory. I have come to the conclusion that setting Label.TextColor leaks about 400-600 bytes of memory every time its called. Has anyone observed this or can see what I am doing wrong?
System: Rasberry Pi 4, Rasbian (does not happen on macOS)
[quote=478134:@Alessandro Molinari]Hello, I am still experiencing same problem… Xojo 2019 r3.1 - Raspberry Pi 4, Raspbian
Anyone can confirm has been really fixed?
Thanks everyone![/quote]
I have not verified it yet as I just made my own labels using a canvas. I will double check when I get home. May I ask for some sample code for how you are using it and how you know its leaking?
Hi Alex, thanks for you reply! Sure, I did a small project just in order to test it, basically is just a window with a timer that updates the color of ten labels text. If you can give it a try I will be happy to know if this still happens in other systems… I am using Raspberry Pi4, Xojo 2019r1.
Just put a timer and 10 labels on a Windows,in Timer1.Action put:
Check with Runtime.MemoryUsed, how much memory are you leaking for each call to Label.TextColor, I think when I was testing it was leaking about 100 bytes of memory for each call.
Wow! Thats a bit of an issue for me. I change theme based on a dimmer knob, it wouldnt take long to run out of memory. Please update the feedback case so we can get the Xojo team to take another look at it.
Thanks Alex, I have the same problem… I have a timer that reads an I2C bus at 50ms interval, then some labels need to change color depending upon data received. It takes about 35 seconds to slow down the program and crashing the bus Hope the have a new release soon…
I have the same amount of labels, I just made a custom label using a canvas that has the same methods as a normal label, then just search and replaced them all.