Difference between revisions of "Midware TAppServer.OnServerBgException"
Jump to navigation
Jump to search
(Created page with ' Main page -> Midware component reference -> TAppServer -> [[Midware_TAppServer.OnServerBgException | OnS…') |
|||
Line 6: | Line 6: | ||
== 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. |
Revision as of 08:54, 14 May 2011
Main page -> Midware component reference -> TAppServer -> OnServerBgException
Definition
property OnServerBgException: TAppServerBgExceptionEvent;
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.