delphi - how to detect if tfilestream has been freed? -


Is there a way to see if the tfile stream is being used? For example if I type fs type tfilestream, then type it buffer and finally download the stream for free using tfilestream.free I like something:

  if tfilestream.NotActive // if tfilestream code is ifused // code if tfilestream.free = true then // code  

active and is happening < / Strong> methods do not exist for real

"text ">

The way you expect it, you can not do it Do not you and it Friandnl ()

  var FS with Tifailstrym; Start FS: = TFileStream.Create (...); Work with TFListream at end of Android (FS) End; // You need to check FS for some reasons. If not assigned (FS) then the stream // was released. End; End;  

Comments