Vote UpVote

JWSCL and FreeAndNil

JEDI Windows API – There is a lot of talking about the usage of FreeAndNil in destructors. I’ve never thought about it before so I used it quite often even in destructors. Although I don’t use it as a universal remedy function, it still seems to be a bad design: a thought shared by many leading Delphi experts.  Thus I refactored the destructors in JWSCL to accompany them. I introduced a function similar to FreeAndNil procedure JwFree(var Obj); It just frees an object…in the release build of an application. However, in a debug build it additionally sets the value of obj to $C which isn’t a ...
Favorite? Off-Topic? Christian Wimmer @ 2010-02-25 12:54


Visits: 562
Votes: 2
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Aleksey Timohin
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News


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