I created a MFC app and tried to duplicate in it. So far, I haven't crashed. the UIAutomationCore.dll loads into it. However, the cursor indicator is erratic in that app. The default code generated has some docking panes with UI in them and sometimes I see the indicator flash when I am in a control that lets me type text but usually it doesn't show up. I added an edit box to the "About" dialog and it does show up there. If I run file open, it shows up there.
Like our app, once the DLL loads and I click in boxes where it may show up, I get these exceptions:
Exception thrown at 0x00007FFFD6D04FD9 in MFCApplication7.exe: Microsoft C++ exception: wil::ResultException at memory location 0x0000006DFA0FCD30.
Sometimes I have a stream of those output to the debugger window. For this MFC app, if I run the file open dialog (standard Windows dialog), if I click in the edit field and then dismiss the dialog, a number of those exceptions occur. The seem benign. Probably just noise to clutter up my output window so I have a hard time finding my own messages. But, of course, I don't know if they are significant as I don't have the MS code.
Our app is not something I can provide a link too. Way too complicated and it has 25 million+ lines of code. Maybe MS can drop the UIAutomationCore code so I can step thru it and find the point where someone is failing to check for a nullptr as the assembly code is showing (me at least) that someone is trying to access instance data of some object that is sometimes null.
If this is a race condition, the MFC app may not be complex enough to expose that fact. But someone with the code should be easily able to examine the code and find where this AV can occur.
Also, I used google and found a number of posts that indicate this same setting is crashing other apps. So, bug there is and I think it is a simple failure to examine the value of some pointer that is null.