Quoting Peter Vreman <peter at freepascal.org>: > Use explicit namespacing: System.Close(sin) Thank you all for the many responses. I now understand a bit more about the namespaces and have a working program :) Thanks, Jeremy