Managing memory

To maximize performance on the device, M-Business Client performs major memory cleanup—"garbage collection" functions—only when the user closes M-Business Client. To avoid running out of memory, you must ensure that any allocated memory is freed up as soon as it is no longer needed.

In addition to the preceding topic, Lifetime of method arguments and return values, see the following topics in this guide for details on C programming practices that keep applications from running out of memory on M-Business Client:

For information on JavaScript programming practices that keep applications from running out of memory on M-Business Client, see Garbage collection and memory management in M-Business Client.

Tip

If a user never closes M-Business Client on a device, eventually all available memory will be used up. To avoid this potential problem, you should design applications in such a way that users are encouraged to close M-Business Client at the end of an application session.