Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

methodiFileJail.Close

procedure Close(var aHandle: tJailHandle);
Closes a handle obtained above. Safe on a handle THIS JAIL PRODUCED, whether the call that produced it succeeded or failed. NOT safe on a tJailHandle that has never been through OpenVerified or OpenStream: only Leaf and Physical are managed fields, so Delphi zeroes those and leaves Native and Parent as whatever was on the stack. Pass such a record to ClearJailHandle first. The POSIX backend additionally refuses to close anything at or below descriptor 2, because a stale small positive value there is somebody else's file.