“Session not found” in Relativity // wrong password

Hi

I am looking for a solution to react to a wrong entred password.
Until now i just get a error:

I use this code to react on this event but it would be nice if i could ope a form where the user could correct his user credentials.

procedure TDM.ROBinMessage1ServerException(anException: Exception;
  var RaiseException: boolean);
begin
     ini:=TIniFile.create(vConfigurations.ConfigFilePath);
     try
        ini.WriteString('OPTION','DBSYNC_LOGIN_PROBLEM','1');
     finally
     end;
end;   

Shalom
Manfred

My System is:
Relativity Server: v9.3.104.1297
Data Abstract: v9.3.104.1297
RemObjects SDK: v9.3.104.1297

Framework: v4.0.30319.42000
Operating System: Unix 3.13.0.42
Platform: Unix

Lazarus
with FPC 3.0.2 on 2017/05/29 at 17:13:03
using LCL 1.6.4.0 and Win32/Win64 widget set


RemObject
DA Ver.9.3.104.1299

you can handle SessionNotFoundException exception in Channel.OnLoginNeeded event like: show Login form and perform login here.

btw, our wizards generate code for this event. try to create Relativity client in Delphi and review created project.

Thank you very much for the Hint.
Was able to get a working solution. :beers:

Shalom
Manfred