Used this little test application:
Delphi-Quellcode:
program Project1;
{$APPTYPE CONSOLE}
uses
JwsclTerminalServer;
var
TS : TJwTerminalServer;
i : integer;
begin
TS := TJwTerminalServer.Create;
TS.Connect;
TS.EnumerateSessions; // Crash
for i := 0 to TS.Sessions.Count - 1 do
writeln(TS.Sessions[i].Username);
TS.Free;
end.
System is Windows Vista x64 SP1. I will add a little trace later. Have to finish some work first.