Patrice Freydiere wrote: > i 've not seen such functionnality on aws, that permit me to provide a > custom stream (not a ressource stream), which can tell me that the > stream has been close to help me free the heap memory allocation. You should just inherite from resource stream and override procedure Close (Resource : in out File_Type);