Chat here about code rewrites, mods, etc... with respect to the github project https://github.com/esp8266/Arduino

Moderator: igrr

User avatar
By dannybackx
#34049 I've written a couple of C++ source files and I'm having issues with memory getting overwritten.

Is it possible that the 80K are full, and that stack and heap are touching each other ? How can I detect that ?

Danny
User avatar
By dannybackx
#35242 I'll answer my own question.

No it wasn't full. Some of my class instances were getting deallocated (their DTOR was called) so pointers to stuff coming from there were obviously invalid.

ESP.getFreeHeap() reports the amount of heap still available, currently around 28K for me.