How do I initialize the ExceptionHandler parameter when install_handler is set to false?

31 views
Skip to first unread message

David, Min

unread,
Aug 31, 2018, 2:15:44 AM8/31/18
to google-breakpad-dev

When I create google_breakpad::ExceptionHandler object with install_handler parameter as false, no dump file is generated.

According to source comment, I need to call WriteMinidump() function. But, where should I call it?


The dump file is created normally when initialized as below.

exceptionHandler = new google_breakpad :: ExceptionHandler (descriptor, NULL, DumpCallback, NULL, true, -1);


However, setting install_handler to false will not create a dump file.

exceptionHandler = new google_breakpad :: ExceptionHandler (descriptor, NULL, DumpCallback, NULL, false, -1);


In this case, where should I call exceptionHandler-> WriteMinidump () function?


Thank you.

Reply all
Reply to author
Forward
0 new messages