I have an app that exhibits signs of ram corruption.
This started to happen as I was adding functionality and unless I cut it back again it creates a situation where I have to do a factory reset - aarrgghh.
Obviously this could be some bad coding but I don’t think so. It could also be that some kind of buffer overflow is occurring.
So my question is how can an app determine the amount of RAM available? This would help to see if there is likely to be a problem in execution. Ideally, this would be something that can be called in the main loop to detect a problem before any bad side-effect occurs.