This site is moving to The Zen Source Library
Please Update your bookmarks

Delphi 3's _Release

As I've said there is no need to call _Release in Delphi 3. Calling it will probably cause your app to crash. I've also said that this "auto-release" its a great addition to Delphi. It is however important to remember that Delphi 3 is not psychic, maybe version 4.0... ?

The point is that there are times when you will need to be sure that Delphi has freed a storage / stream. This is done easily enough, set the stream / storage variable to nil.

   {stor is a variable of type IStorage}

   stor := blablabla; //Open storage here

   (* Use storage *)

      {Make sure that the storage is released}
   stor := nil;

All information on these www pages is copyright (©) 1997 Andre .v.d. Merwe And may not be copied or mirrored without my permission.