WndProc, ++ "" WndProc. ( Windows)
WndProc , WndProc.
,
LRESULT CALLBACK WndProcNoX(....)
{
try
{
static A a;
...
}
catch(Exception const & x)
{
return 0;
}
}
(*) : 0 " " , , . leng , . !
To protect you from this, you will need to try try / catch for all individual handlers and decide whether to return a return value "in case of error" for each message.
Another option is to pass the message to the default handler in case of an error, which may also be problematic for some messages.
source
share