Quality Is Our Solution
QIOS Portal
|
Extranet
Home
Qios.DevSuite
Downloads
Samples & Documentation
Servicedesk
QIOS
Controls
Features
Requirements
Licensing
Buy
Screenshots
Download
Resellers
Contact
Support policy
Extranet
Documents
Samples
Version information
Memory Management
Design Gallery
Memory Management - Screenshots
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
Qios.DevSuite.MemoryPack
Updated Version: 2006-09-07
Memory Management
Memory management
Introduction about automatic memory management and its problems.
More information
Publishing and consuming
Explains how to publish and consume events using the QWeakEvent structure to prevent controls from being ignored by the garbage collector.
More information
QWeakMessageFilter and
QWeakReferenceCollection
Shows how to create a collection of weak references and a weak IMessageFilter implementation.
More information
Other notes and links
A few other notes and links about memory management
More information
Qios.DevSuite.MemoryPack
Screenshots
Some MemoryPack screenshots that illustrate the difference when using our technique
More information
Download
Qios.DevSuite.MemoryPack
Download the
free
and
opensource
library & sample application that shows the difference between normal event handling and using the QWeakEvent structure.
Proceed to the download
Copyright
|
Disclaimer
|
User agreement