Close or ESC key
© QIOS

The sample application shows that creating and disposing a form with an

eventhandler increase memory usage. The form does not get collected by the garbage collector because of the strong event handler.

Shows the memory usage with default events

The sample application shows that creating and disposing a form with an eventhandler of a QWeakEvent does not increase memory usage. The form gets collected normally by the garbage collector.

Shows the memory usage with QWeakEvents

The sample application shows that creating and disposing a form with a default IMessageFilter implementation increase memory usage. The form does not get collected by the garbage collector because of the IMessageFilter implementation.

Shows the memory usage with a default IMessageFilter

The sample application shows that creating and disposing a form with a QMessageFilter implementation does not increase memory usage. The form gets collected normally by the garbage collector.

Shows the memory usage with QWeakMessageFilter