I've got a situation where I have a callback from unmanaged code to managed C# code. The C# code is throwing an exception and if I let it propagate back through the unmanaged code it gets silently ignored.
In the callback I'd like to catch the exception and then force it to be treated like an unhandled exception - either breaking in the debugger, or aborting the process if not running under the debugger.
What's the best way to handle this? Or, are there any references to discussions about this issue?
(I don't have control over the unmanaged code - it's a Win32 WndProc callback).