Three-tier structure, a small problem in automatically starting the Application Service of the server. Ask prawn Delphi/Windows SDK/API
Http://www.delphi2007.net/DelphiNetwork/html/delphi_20061212143313139.html
The client communicates with the application server through the iappserver interface, socketconnetion, and clientdateset.
The application server uses remotedatamodule and datesetprovider.
After scktsrvr.exe is started (copied from the Delphi7 installation directory ),
1. If you first start the Application Server ProgramThe client connection and data access are normal (normal)
2. if you start the client first, the application server automatically starts and closes the application together with the closing of the connected client. (This is okay. The key is as follows) but data access is not allowed, prompting '% 1 cannot be found. '(abnormal)
How can I enable the automatically started application server to interact with data normally? Thank you.
If you are not clear about the first question, please forgive me.
I have never met you in that situation! It may be an error in your server or client program.
The most serious problem I have encountered is that the connection between the client and the server cannot be disconnected as the client is closed, occupying a large amount of resources, resulting in low server efficiency.
The TCP/IP connection is normal. The connection information of the client is displayed in scktsrvr.exe, that is, when the data is accessed, the system prompts '% 1.' cannot be found .'
If you start the service first, you will not be able to solve this problem.
I have never encountered this problem.