Discussion about the ZBasic language including the System Library. If you're not sure where to post your message, do it here. However, do not make test posts here; that's the purpose of the Sandbox.
FFMan wrote:[...] is that the issue or the fact its not being returned when the send phase is over ?
A call to and return from any routine is supposed to be neutral with respect to the heap unless it's a function that returns a string. In that case, the storage for the returned string is supposed to be freed when the calling routine returns.
The data you've shown suggests that there is a leak somewhere. The process of locating the leak is tedious but usually can be done. If you can trim your application down to a standalone minimum (no external devices required) I can work on locating the problem. If your app communicates with external devices you can probably simulate the transmission and reception by adding some code to replace the communication.
Leak was identified by Don and compiler amended to prevent future recurrence.
Caused by erroneous line of code exit sub directly preceding end sub statement or more generically as I understand it an exit sub ion the outer level of a routine i.e. not within an If or Do block.
Poor coding on my part so probably does not affect any/many others.