Delphi Xe3, DA 8
Sometimes I get error:
An exception was raised on the server: Cannot Initialize Streamer that is already in use.
on the server.
How I can on the server log this error? I can’t catch this error
How I can detect the source (table) of this error?
How use OnInitialized event handle of data streamer to log table?
begin
ClientID:=ServerDataModule.Message.ClientID;
fClassFactory:=GetClassFactory('SaldoService');
fClassFactory.CreateInstance(ClientID, instance);
try
try
(instance as ISaldoService).GetMyData;
except
on e:exception do begin
ServerForm.LOG4(DateTimeToStr(now)+' -SaldoService '+e.Message);
end;
end;
finally
fClassFactory.ReleaseInstance(ClientID,instance);
end;
Is this correct way?
And always I use initialize/finalize construction for WriteDataset and ReadDataset