Hi,
I'm writing a wrapper class around Synapse in order to migrate from another
library and need to generate an OnException event that passes the exception
raised. The documentation states that in the HookStatus event
HookSocketReason is set to HR_Error when an exception occurs and that if
RaiseExcept is true, the exception is raised after the HookReason. Does this
mean that the following code will achieve what I need? :-
...
Try
Case Reason Of
...
HR_Error :
...
End; { Case }
Except
On E : Exception Do
Begin
If Assigned(FOnException) Then
FOnException(Sender, E);
End;
End;
Thanks in advance,
Andy Denton
Romar Monitoring Solutions Ltd
Skype: andy_denton
http://www.romar.co.uk
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public