Installing default handlers for CAPI applications
Hi,
I'm currently putting the finishing touches on a CAPI (Win32) application
for a client of mine, and as part of this I'd like to install "default"
handlers for errors and warnings.
Is there any simple way in LW to achieve this? The most obvious way I can
think of would be to wrap the given handlers around the message-loop in
each interface's process, however this brings up the question of how I'd
manually construct a valid CAPI message-loop process, given that this
isn't documented AFAIK, and involves internal symbols in the CAPI package
(capi::run-in-process??).
Another option would be general hooks into the condition signalling
process, which is trivial for errors (cl:*debugger-hook*) but not so for
warnings.
Of course in the worst case I could establish the various handlers around
each an every callback, etc. manually, but this seems tedious.
Given that this isn't all that unusual to do, it seems to me I must be
missing something obvious, so any advice would be most welcome...
Regs, Pierre.
--
Pierre R. Mai <pmai@acm.org> http://www.pmsf.de/pmai/
The most likely way for the world to be destroyed, most experts agree,
is by accident. That's where we come in; we're computer professionals.
We cause accidents. -- Nathaniel Borenstein
________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com
________________________________________________________________________