You can use the program Process Explorer to see how many handles running applications have. Is there a way with Delphi code to get this number? I am interested in tracking the number for the application itself; not to find the number of handles used by other applications as Process Explorer is doing.
My intention is for the application to track/detect possible resource leaks.
Socket.Close()
when a network connection error occurs. – Giovannigip