Stop server

Command group Flag affected Reversible Execute on client Platform(s)
Threads YES NO NO All

Syntax

Stop server

Description

Stop server stops the server from responding to client requests. Once the server has been started (using Start server) it is recommended that it is stopped before quitting the Studio program, before using the Studio program for anything apart from serving client requests, and before opening or closing any datafiles or libraries.

Stop server disposes of all remote task and remote form instances. The resources used by the client stacks and threads are not released but they will be reused by the next Start server command.

Stop server will fail and clear the flag, if you call it from a client method stack. In other words, you can only call Stop server from the main method stack.

Example

Stop server 
If flag false
  OK message {Failed to stop multithreaded server}
End If