Hello...
About my new Scalable reference counting with efficient support for weak
references version 1.1:
Weak references support is done by hooking the TObject.FreeInstance
method so every object destruction is noticed and if a weak reference
for that object exists it gets removed from the internal dictionary
where all weak references are stored. While it works I am aware that
this is hacky approach and it might not work if someone overrides the
FreeInstance method and does not call inherited.
You can download and read about my new scalable reference counting with
efficient support for weak references version 1.1 from:
https://sites.google.com/site/aminer68/scalable-reference-counting-with-efficient-support-for-weak-references
And you can port it to C++..
Thank you,
Amine Moulay Ramdane.