When running our unit tests in debug mode, at a certain point the Visual Studio debugger breaks to show the reentrancy MDA. The linked article explains that this occurs when A low-level operating system extensibility point, such as the vectored exception handler calls back into managed application code.
Apparently this can cause heap corruption or other serious problems, so I would definitely like to fix it.
I am looking at the stacktrace at the point where this warning is shown, but I'm having trouble figuring out which "low-level operating system extensibility point" is involved here. I don't see any unmanaged/managed transitions other than the once caused by mstest and by calling the System.Windows.Forms.Cursors.VSplit
getter. Also, simply calling that getter from a unit test doesn't seem to be sufficient to trigger the warning.
What have I done wrong here, and how do I fix it?