Difference between revisions of "Midware TAppServer.OnClientBgException"

From Overbyte
Jump to navigation Jump to search
 
Line 3: Line 3:
 
== Definition ==
 
== Definition ==
  
'''property''' OnClientBgException: '''TClientBgException''';
+
<syntaxhighlight lang="delphi">
 +
TClientBgException = procedure (Sender    : TObject;
 +
                                CliWSocket : TClientWSocket;
 +
                                E          : Exception) of object;
 +
 
 +
property OnClientBgException : TClientBgException;
 +
</syntaxhighlight>
  
 
== Description ==
 
== Description ==

Latest revision as of 08:49, 14 May 2011

Main page -> Midware component reference -> TAppServer -> OnClientBgException

Definition

<syntaxhighlight lang="delphi"> TClientBgException = procedure (Sender : TObject;

                               CliWSocket : TClientWSocket;
                               E          : Exception) of object;

property OnClientBgException : TClientBgException; </syntaxhighlight>

Description

Occurs when an exception is triggered in the background by client socket.

Client communication is handled by a TWSocket descendent component which works in the background. Sometimes, an exception is triggered in the middle of nowhere. Really means the exception is triggered at the lowest message pump level. It is interesting to handle this exception, at least to record it to some log file. It may happend that some exception affect winsock in such a way that no client is able to connect again. You can Stop and Start the server to solve that problem.