Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.

ID: 24030, 'weak delegates' in Delphi.NET

by Mauro Venturini Email: Anonymous

Using Qios.DevSuite.MemoryPack in Delphi.NET to implement 'weak delegates'
Download Details
FTP  download also available
CDN Login Required to Download. (You will be redirected to the login page if you click on the Download Link)
To download this, you must have registered:
A free membership

For Delphi, Version 10.0  to 10.0 68 downloads
Copyright: No significant restrictions

Terms of use: Embarcadero use at your own risk disclaimer

Size: 44,796 bytes
Updated on Fri, 07 Jul 2006 08:37:33 GMT
Originally uploaded on Fri, 30 Jun 2006 06:07:27 GMT
SHA1 Hash: A77DFA8970ECE3423C0663679EAD262FACEBD343
MD5 Hash: 05195136EBCE2B8FB42C3B17FEF0A4DF

    Explore the files in this upload

Delegate based events have an often overlooked problem with garbage collecting. Generally any event consumer will never be garbage collected before the event publisher. As the publishers are often long lived objects this is not a small matter.

A company, QIOS, offers an open source library, Qios.DevSuite.MemoryPack, that implements a replacement for delegates based on weak reference. As weak references are not considered by the garbage collector the events do not interfere any more with it.

Here is a sample of use of Qios.DevSuite.MemoryPack in Delphi.NET.

   Latest Comments  View All Add New

Move mouse over comment to see the full text

Could not retrieve comments. Please try again later.

Server Response from: ETNACDC03