0

I have a native node module running in an electron application and I want to log all unhandled exceptions so I use the following snippet:

LONG WINAPI unhandledExceptionFilter(PEXCEPTION_POINTERS)
{
    return EXCEPTION_EXECUTE_HANDLER; // 1
    return EXCEPTION_CONTINUE_EXECUTION; // 2
    return EXCEPTION_CONTINUE_SEARCH; // 3
}

SetUnhandledExceptionFilter(unhandledExceptionFilter);
AddVectoredExceptionHandler(0, unhandledExceptionFilter);

The problem is that when I use SetUnhandledExceptionFilter electron crash reporting will not work anymore (I have it set up to send a log file to some server). I also tried all possible return values but none work.

What am I doing wrong ? and how to get this to work ?

Some more info:

4

0 回答 0