TDisableServer
Return to Introduction  Previous page  Next page
A pointer to a method of this type is passed by the server as a parameter to the VcsInitAddin method. This method can be called to disable the server temporarily to, for example, allow maintenance functions to be called on the server without having to worry about users modifying the repository during the call. Calling this method prevents users carrying out actions.

Calls to this method should always be followed by a call to the method of type TEnableServer.

type  
  TDisableServer = procedure; stdcall;  

Parameters

None

Example (Delphi)

procedure TMaintenanceThread.Execute;  
begin  
  DoDisableServer;  
  try  
    DoFlushBuffers;  
    ValidateTheRepository;  
  finally  
    DoEnableServer;  
  end;  
end;  


 


© 1995-2018 MCN Software