Difference between revisions of "Midware TAppServer.OnServerBgException"

From Overbyte
Jump to navigation Jump to search
(Created page with ' Main page -> Midware component reference -> TAppServer -> [[Midware_TAppServer.OnServerBgException | OnS…')
 
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
 
== Definition ==
 
== Definition ==
  
'''property''' OnServerBgException: '''TAppServerBgExceptionEvent''';
+
<syntaxhighlight lang="delphi">
 +
type
 +
TAppServerBgExceptionEvent = procedure (Sender : TObject;
 +
                                        E : Exception) of object;
 +
 
 +
property OnServerBgException : TAppServerBgExceptionEvent;
 +
</syntaxhighlight>
  
 
== Description ==
 
== Description ==
 +
 +
Occurs  when an exception in server socket occurs in the background.
  
 
The OnBgException event is triggered when an exception occurs in the background (occuring in an event handler called from the message pump). If not handled, those exceptions are simply ignored.  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.
 
The OnBgException event is triggered when an exception occurs in the background (occuring in an event handler called from the message pump). If not handled, those exceptions are simply ignored.  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.

Latest revision as of 08:55, 14 May 2011

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

Definition

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

                                       E : Exception) of object;

property OnServerBgException : TAppServerBgExceptionEvent; </syntaxhighlight>

Description

Occurs when an exception in server socket occurs in the background.

The OnBgException event is triggered when an exception occurs in the background (occuring in an event handler called from the message pump). If not handled, those exceptions are simply ignored. 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.