Rich UI memory management for Microsoft Internet Explorer

Two memory-management functions are available for avoiding memory leaks, which are possible if your users are accessing a Rich UI application by way of Microsoft™ Internet Explorer version 8 or less. The leaks slow your application and can cause the browser to crash.

The issue arises primarily if you declare a widget or embedded handler within a function. These in-function declarations allocate memory at run time, but even after the function ends, Internet Explorer returns the memory to the operating system only after the user has closed the browser tab.

Each of the memory-management functions requests that Internet Explorer return memory. Internet Explorer typically fulfills the request after a delay, but while the application is still running.

The functions are as follows:

Neither function returns a value.

If you are affected by the issue just described, consider these coding conventions: