We are launching the DataSnap Delphi 2009 application on Windows 2003 Server. The client and the DataSnap server are on the same computer using DCOM through Borland Socketserver. The client is running a background batch job.
Sometimes we find that the client cannot connect to the server application and displays a message dialog box on the server’s desktop, for example, “Could not connect to the server. Could not find the network path.” or "ObjectExporter not found."
Our client code Delphi never uses a dialog box with error or exception messages, instead we use try ... except .. finally ... end and logging to handle connection errors, so I think the dialog is created by the DataSnap method. Is there any way to suppress this modal dialog box?
Update: all exceptions are processed in lower-level procedures, the main loop takes care of disconnecting and reconnecting when an exception occurs (handled or not processed):
while True do
begin
Connect;
while True do
begin
try
DoMyWork;
except
Break;
end;
end;
Disconnect;
end;
source
share