Skip to content

Windows 10 Mail: catch COM error thrown when Mail app dies and tree interceptor/alive method is attempted#9392

Merged
michaelDCurran merged 3 commits into
nvaccess:masterfrom
josephsl:i9341
Mar 28, 2019
Merged

Windows 10 Mail: catch COM error thrown when Mail app dies and tree interceptor/alive method is attempted#9392
michaelDCurran merged 3 commits into
nvaccess:masterfrom
josephsl:i9341

Conversation

@josephsl

Copy link
Copy Markdown
Contributor

Link to issue number:

Fixes #9341

Summary of the issue:

When Windows 10 Mail app dies, NVDA goes silent due to unhandled COM error.

Description of how this pull request fixes the issue:

When walking up to parent in Mail app's Word document tree interceptor, catch COM error if the parent is gone (noticeable when Mail app dies).

Testing performed:

Tested with an implementation in Windows 10 App Essentials add-on:

  1. Exit Mail app without opening a message: success.
  2. Exit Mail app while a message is open: success.

Known issues with pull request:

None

Change log entry:

Bug fixes:

NVDA will no longer become silent after exiting Windows 10 Mail app. (#9341)

Thanks.

…nterceptor alive method is attempted. Re nvaccess#9341.

Consider the following: a Windows 10 user opens Mail app (hxoutlook), opens a message, then exits Mail app. At that point, tree interceptor/alive method is attempted, but because parent is gone, it raises COM error. Without catching this, NVDA goes silent, so catch this error if possible.
@josephsl josephsl requested a review from michaelDCurran March 21, 2019 14:19
@michaelDCurran michaelDCurran merged commit b85d4b0 into nvaccess:master Mar 28, 2019
@nvaccessAuto nvaccessAuto added this to the 2019.1 milestone Mar 28, 2019
@michaelDCurran michaelDCurran modified the milestones: 2019.1, 2019.2 Mar 31, 2019
@josephsl josephsl deleted the i9341 branch April 1, 2019 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mail app in windows 10 causes NVDA to fall silent

3 participants