For next MBS Xojo Win Plugin, we add a new WindowsGUIResourcesMBS class:
This class allows you to query the number of handles used for GUI and user objects. So you can have a timer monitor those values and maybe detect a leak in memory usage. For example, each picture needs a GUI handle. But a window may contain a few user object and GUI handles.
Coming soon for version 18.2 of our Xojo plugins.