winapi - Create minidump from Excel XLL -
i have excel xll addin crashes excel on computers. in order troubleshoot added call in dllmain
:
setunhandledexceptionfilter(myexceptionfilter);
and filter itself:
long winapi myexceptionfilter(struct _exception_pointers *lptoplevelexceptionfilter)
but filter never gets called on crash.
this old question, in case can else: using setunhandledexceptionfilter()
inside xlls not supported design, quoting microsoft employee jie wang http://www.office-forums.com/threads/setunhandledexceptionfilter-in-office-addin.2164345/
the behavior observed design.
3rd-party addins/dlls cannot set unhandled exception filter office 2007 apps (at least not in supported way). mso.dll explicitly sets filter itself, overrides api prevent 3rd-parties changing filter after mso has set it. common office apps (not outlook).
so officially supported method of getting crash dumps excel use wer.
in practice, using msvc-specific _set_se_translator()
function work however. must called application threads, unlike process-global setunhandledexceptionfilter()
.
Comments
Post a Comment