Project hangs from time to time

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.
dkinzer
Site Admin
Posts: 3120
Joined: 03 September 2005, 13:53 PM
Location: Portland, OR

Post by dkinzer »

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.
- Don Kinzer
FFMan
Posts: 502
Joined: 09 January 2010, 12:52 PM

Post by FFMan »

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.

As always, thanks Don for tracking it down.
Post Reply