Difference between revisions of "Midware TClientWSocket.OnBgException"

From Overbyte
Jump to navigation Jump to search
Line 5: Line 5:
 
  '''type'''
 
  '''type'''
 
  TBgExceptionEvent = procedure (Sender : TObject;
 
  TBgExceptionEvent = procedure (Sender : TObject;
                              E : Exception;
+
                                E : Exception;
                              var CanClose : Boolean) of object;
+
                                var CanClose : Boolean) of object;
 
  '''property''' OnBgException: TBgExceptionEvent;
 
  '''property''' OnBgException: TBgExceptionEvent;
  

Revision as of 07:51, 14 May 2011

Main page -> Midware component reference -> TClientWSocket -> OnBgException

Definition

type
TBgExceptionEvent = procedure (Sender : TObject;
                               E : Exception;
                               var CanClose : Boolean) of object;
property OnBgException: TBgExceptionEvent;

Description

A background exception is an exception that occurs in the middle of nowhere. It is detected at the lowest level in message handling. If not assigned and event handler, the default behaviour will be to close the socket.

Occurs when an exception is thrown in the background.