public void OnCallbackException(CallbackExceptionEventArgs args)
{
CallbackExceptionEventHandler handler;
lock (m_eventLock) {
handler = m_callbackException;
}
if (handler != null) {
foreach (CallbackExceptionEventHandler h in handler.GetInvocationList()) {
try {
h(this, args);
} catch {
// Exception in
// Callback-exception-handler. That was the
// app's last chance. Swallow the exception.
// FIXME: proper logging
}
}
}
}