6
votes
Vote UpVote

Supports killing objects

Delphi sorcery – Today I had a really bad "d'oh!" moment... feel free to laugh at me because I did not know better. ;)You all may use the Supports routine - so did I without further thinking about it - until today. I shamefully have to admit that I should have looked at its code and/or the documentation earlier.What happened? In my bindings I check the source and target objects for special interfaces (f.i. INotifyPropertyChanged). I changed some code and strange things started happening in form of access violations. So I quickly found out that the Supports call caused a Destroy on the object when it did not ...
Favorite? Off-Topic? noreply@blogger.com @ 2011-10-07 19:59

Statistics

Visits: 943
Votes: 6
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Ericc
Paul Thornton
Robert Love
TDelphiHobbyist
vcldeveloper
Zzzzz
Subscribe:
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News

Sponsor

 
Please login or register to use this functionality.
(click on this box to dismiss)