11-11-2019, 06:54 PM
Ok bad news. Why did I changed to FireDac???
But isn't a thread already started when creating UserSession.
So what about this statement? FDManager must be activated before threads will start by setting FDManager.Active to True.
This is how I did it in a Service module
FDManager := TFDManager.Create(nil);
FDManager.ConnectionDefFileName := 'e:\FireDAC\FDConnectionDefs.ini';
FDManager.ConnectionDefFileAutoLoad := True;
FDManager.Active := True;
StartThreads; { Start file threads and begin fetching files }
Is that code ok, if so where should I put it. CreateUserSession?
But isn't a thread already started when creating UserSession.
So what about this statement? FDManager must be activated before threads will start by setting FDManager.Active to True.
This is how I did it in a Service module
FDManager := TFDManager.Create(nil);
FDManager.ConnectionDefFileName := 'e:\FireDAC\FDConnectionDefs.ini';
FDManager.ConnectionDefFileAutoLoad := True;
FDManager.Active := True;
StartThreads; { Start file threads and begin fetching files }
Is that code ok, if so where should I put it. CreateUserSession?